aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-10-09 19:42:35 +0300
committerXhmikosR <[email protected]>2019-11-14 15:07:52 +0200
commit19a13ad0b0db59e274cabfc501bedf6c5dde6991 (patch)
treed4ddb94585d805541acc9791bd7a028492e9368a /.github
parent2ed185ca3626591549ed33c2363a47b824a39d0f (diff)
downloadnode-coveralls-19a13ad0b0db59e274cabfc501bedf6c5dde6991.tar.xz
node-coveralls-19a13ad0b0db59e274cabfc501bedf6c5dde6991.zip
Switch to GitHub Actions CI.
Currently only runs on Ubuntu
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..7333db0
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,35 @@
+name: Tests
+on: [push, pull_request]
+env:
+ CI: true
+
+jobs:
+ run:
+ name: Node ${{ matrix.node }}
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ node: [6, 8, 10, 12]
+
+ steps:
+ - name: Clone repository
+ uses: actions/checkout@v1
+
+ - name: Set Node.js version
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node }}
+
+ - run: node --version
+ - run: npm --version
+
+ - name: Install npm dependencies
+ run: npm install # switch to `npm ci` when Node.js 6 support is dropped
+
+ - name: Run tests
+ run: make test-coveralls
+ env:
+ COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
+ COVERALLS_GIT_BRANCH: "${{ github.ref }}"