File tree 2 files changed +38
-3
lines changed 2 files changed +38
-3
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean installation of node dependencies and run code coverage across different versions of node
2
+
3
+ name : Run Code Coverage
4
+
5
+ on : [push, pull_request]
6
+
7
+ jobs :
8
+ build :
9
+
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [16.x, 18.x]
15
+
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v3
19
+ with :
20
+ fetch-depth : 2
21
+
22
+ - name : Use Node.js ${{ matrix.node-version }}
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+
27
+ - name : Install dependencies
28
+ run : npm install
29
+
30
+ - name : Run the tests
31
+ run : npm test -- --coverage
Original file line number Diff line number Diff line change 19
19
redis-version : [4, 5, 6]
20
20
21
21
steps :
22
- - uses : actions/checkout@v3
22
+ - name : Checkout repository
23
+ uses : actions/checkout@v3
24
+
23
25
- name : Use Node.js ${{ matrix.node-version }}
24
26
uses : actions/setup-node@v3
25
27
with :
30
32
with :
31
33
redis-version : ${{ matrix.redis-version }}
32
34
33
- - run : npm install
35
+ - name : Install dependencies
36
+ run : npm install
34
37
35
- - run : npm run test
38
+ - name : Run the tests
39
+ run : npm run test
You can’t perform that action at this time.
0 commit comments