Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-assert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Karns <jason.karns@gmail.com>2023-02-23 16:57:15 +0300
committerJason Karns <jason.karns@gmail.com>2023-02-23 16:58:49 +0300
commit1950e8cb6cfa464a3b57b1dbc21e3413b3600e94 (patch)
tree30457cb816997e5503bc210209e380cd886bd933
parent73a7cfa6e14af781ea77f7dbe4a88638f7f3ec74 (diff)
Replace inline tests workflow with reusable call
-rw-r--r--.github/workflows/test.yml9
-rw-r--r--.github/workflows/tests.yml26
2 files changed, 9 insertions, 26 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..6c95ce2
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,9 @@
+name: Test
+on:
+ push:
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ test:
+ uses: bats-core/.github/.github/workflows/test.yml@v1
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
deleted file mode 100644
index ad332f0..0000000
--- a/.github/workflows/tests.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
-# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
-
-name: Tests
-
-on:
- push:
- workflow_dispatch:
- pull_request:
- branches: [ master ]
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-node@v2
- - uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-
- - run: npm install
- - run: BATS_LIB_PATH="$PWD/node_modules" npm test