File tree Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ NODE_VERSION : [16.x]
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+
16+ - name : Cache
17+ uses : actions/cache@v2
18+ with :
19+ path : ~/.npm
20+ key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
21+ restore-keys : |
22+ ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-
23+
24+ - name : Use Node.js ${{ matrix.NODE_VERSION }}
25+ uses : actions/setup-node@v2.1.2
26+ with :
27+ node-version : ${{ matrix.NODE_VERSION }}
28+
29+ - name : Install dependencies
30+ run : |
31+ npm install
32+
33+ - name : Run tests
34+ run : |
35+ npm test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments