File tree 2 files changed +36
-4
lines changed
2 files changed +36
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches : [master]
5
+ pull_request :
6
+ branches : [master]
7
+ jobs :
8
+ test :
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ node : [12, 14, 16]
13
+ steps :
14
+ - name : Check out repository
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Set up Node
18
+ uses : actions/setup-node@v2
19
+ with :
20
+ node-version : ${{ matrix.node }}
21
+ check-latest : true
22
+ cache : npm
23
+
24
+ - name : Cache Node modules
25
+ id : cache-node-modules
26
+ uses : actions/cache@v2
27
+ with :
28
+ path : node_modules
29
+ key : ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
30
+
31
+ - name : Install dependencies
32
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
33
+ run : npm ci
34
+
35
+ - name : Run tests
36
+ run : npm test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments