Skip to content

Commit

Permalink
Add github actions workflow for testing (#971)
Browse files Browse the repository at this point in the history
* Add github actions workflow for testing

* fix bug in build matrix
  • Loading branch information
cspotcode authored Mar 3, 2020
1 parent 6fd1cb3 commit 7e08a7b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Continuous Integration
on: [push]
jobs:
test:
name: Test ${{ matrix.flavor }} ${{ matrix.node }} ${{ matrix.typescript }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor: [1, 2, 3, 4]
include:
- flavor: 1
node: 6
typescript: typescript@latest
- flavor: 2
node: 13
typescript: typescript@latest
- flavor: 3
node: 13
typescript: [email protected]
- flavor: 4
node: 13
typescript: typescript@next
steps:
# checkout code
- uses: actions/checkout@v2
# install node
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# lint, build, test
- run: npm install
- run: npm run build
- run: npm rm tslint
- run: npm install ${{ matrix.typescript }}
- run: npm run test-cov

0 comments on commit 7e08a7b

Please sign in to comment.