-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github actions workflow for testing (#971)
* Add github actions workflow for testing * fix bug in build matrix
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |