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

github.com/bats-core/bats-support.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schulze <martin.schulze@vireso.de>2022-03-04 09:28:00 +0300
committerMartin Schulze <martin.schulze@vireso.de>2022-03-04 09:28:00 +0300
commitd90abca995698aa60226004cf4e80dfdc3855fb7 (patch)
tree65e6cba79d855b4b845584740b413d5426184d9e /.github
parent6e339fe3b46238bbb02a863e4825e66e5257880a (diff)
Migrate CI to GitHub Actions
as travis' free tier was discontinued
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..46a1d2e
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,27 @@
+# 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: Node.js CI
+
+on:
+ push:
+ branches: [ master ]
+ 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: npm test