File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -39,26 +39,27 @@ jobs:
39
39
runs-on : ubuntu-latest
40
40
# uncomment when a linter is added
41
41
# needs: [lintjs]
42
+ strategy :
43
+ matrix :
44
+ node : [12, 14, 16]
42
45
steps :
43
- - name : checkout
46
+ - name : Checkout ${{ matrix.node }}
44
47
uses : actions/checkout@v2
45
48
46
- - name : setup node
49
+ - name : Setup node ${{ matrix.node }}
47
50
uses : actions/setup-node@v1
48
51
with :
49
- node-version : ' 12.x '
52
+ node-version : ${{ matrix.node }}
50
53
51
- - name : cache dependencies
54
+ - name : Cache dependencies ${{ matrix.node }}
52
55
uses : actions/cache@v1
53
56
with :
54
57
path : ~/.npm
55
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
58
+ key : ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
56
59
restore-keys : |
57
- ${{ runner.os }}-node-
60
+ ${{ runner.os }}-node-${{ matrix.node }}
58
61
- run : npm ci
59
- - run : npm run test
60
- # uncomment when coverage is added
61
- # - run: npm run test:coverage
62
+ - run : npm run test:coverage
62
63
63
64
# ----------------------------------
64
65
# uncomment when a linter is added
You can’t perform that action at this time.
0 commit comments