File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Running Code Coverage
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+
9
+ strategy :
10
+ matrix :
11
+ node-version : [12.x, 13.x, 14.x, 15.x]
12
+
13
+ steps :
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v2
16
+ with :
17
+ fetch-depth : 2
18
+
19
+ - name : Set up Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v1
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+
24
+ - name : Install dependencies
25
+ run : npm install
26
+
27
+ - name : Run tests
28
+ run : npm run coverage
29
+
30
+ - name : Upload coverage to Codecov
31
+ - uses : codecov/codecov-action@v2
32
+ with :
33
+ directory : ./coverage
34
+ files : ./cobertura-coverage.xml
35
+ name : codecov-umbrella # optional
36
+ fail_ci_if_error : true
37
+ verbose : true # optional (default = false)
You can’t perform that action at this time.
0 commit comments