-
-
Notifications
You must be signed in to change notification settings - Fork 529
46 lines (46 loc) · 1.26 KB
/
continuous-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Continuous Integration
on: [push, pull_request]
jobs:
test:
name: "Test #${{ matrix.flavor }}: node v${{ matrix.node }}, ${{ matrix.typescript }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor: [1, 2, 3, 4, 5, 6, 7]
include:
- flavor: 1
node: 6
typescript: typescript@latest
- flavor: 2
node: 13
typescript: typescript@latest
- flavor: 3
node: 13
typescript: typescript@2.7
- flavor: 4
node: 13
typescript: typescript@next
- flavor: 5
node: 14
typescript: typescript@latest
- flavor: 6
node: 14
typescript: typescript@2.7
- flavor: 7
node: 14
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