File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -39,26 +39,27 @@ jobs:
3939 runs-on : ubuntu-latest
4040 # uncomment when a linter is added
4141 # needs: [lintjs]
42+ strategy :
43+ matrix :
44+ node : [12, 14, 16]
4245 steps :
43- - name : checkout
46+ - name : Checkout ${{ matrix.node }}
4447 uses : actions/checkout@v2
4548
46- - name : setup node
49+ - name : Setup node ${{ matrix.node }}
4750 uses : actions/setup-node@v1
4851 with :
49- node-version : ' 12.x '
52+ node-version : ${{ matrix.node }}
5053
51- - name : cache dependencies
54+ - name : Cache dependencies ${{ matrix.node }}
5255 uses : actions/cache@v1
5356 with :
5457 path : ~/.npm
55- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
58+ key : ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
5659 restore-keys : |
57- ${{ runner.os }}-node-
60+ ${{ runner.os }}-node-${{ matrix.node }}
5861 - 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
6263
6364 # ----------------------------------
6465 # uncomment when a linter is added
You can’t perform that action at this time.
0 commit comments