File tree 1 file changed +38
-0
lines changed
1 file changed +38
-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
+ permissions :
9
+ contents : write
10
+ pull-requests : write
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [12.x, 13.x, 14.x, 15.x]
15
+
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v2
19
+ with :
20
+ # Fine-grained PAT with contents:write and workflows:write
21
+ # scopes
22
+ token : ${{ secrets.CODECOV_TOKEN }}
23
+
24
+ - name : Set up Node.js ${{ matrix.node-version }}
25
+ uses : actions/setup-node@v1
26
+ with :
27
+ node-version : ${{ matrix.node-version }}
28
+
29
+ - name : Install dependencies
30
+ run : npm install
31
+
32
+ - name : Run tests
33
+ run : npm run test
34
+
35
+ - name : Upload coverage to Codecov
36
+ uses : codecov/codecov-action@v1
37
+ with :
38
+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments