File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,29 @@ on: push
4
4
5
5
jobs :
6
6
validation :
7
+ name : Testing on Node ${{ matrix.node-version }}
7
8
runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ node-version : [12, 14, 16, 17]
8
12
steps :
9
- - uses : actions/checkout@master
10
- - name : Use Node.js 12.x
11
- uses : actions/setup-node@v1
12
- with :
13
- node-version : 12.x
14
- - name : Cache Node.js modules
15
- uses : actions/cache@v2
13
+ - name : Checkout Repository
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Use Node ${{ matrix.node-version }}
17
+ uses : actions/setup-node@master
16
18
with :
17
- path : ~/.npm
18
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
19
- restore-keys : |
20
- ${{ runner.OS }}-node-
21
- - name : Install dependencies
22
- run : npm install
23
- - name : Lint
24
- run : npm run lint
19
+ node-version : ${{ matrix.node-version }}
20
+
21
+ - name : Get yarn cache
22
+ uses : c-hive/gha-yarn-cache@v2
23
+
24
+ - name : Install Dependencies using Yarn
25
+ run : yarn --ignore-engines
26
+
25
27
- name : Tests
26
- run : npm run test:only
28
+ run : yarn test:ci
29
+
27
30
- name : Upload coverage to Codecov
28
31
uses : codecov/codecov-action@v1
29
32
with :
You can’t perform that action at this time.
0 commit comments