File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Node.js Build & Test
2+
3+ on :
4+ push :
5+ branches : [dev]
6+ pull_request :
7+ branches : [dev]
8+
9+ jobs :
10+ build-and-test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : [14.x, 16.x, 17.x ]
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ - run : npm ci
24+ - run : npm run build --if-present
25+ - run : npm run test:cov
26+ - name : Upload coverage to Codecov
27+ uses : codecov/codecov-action@v1
28+ with :
29+ token : ${{ secrets.CODECOV_TOKEN }}
30+ directory : ./coverage/
31+ flags : unittests
32+ name : codecov-umbrella
33+ fail_ci_if_error : true
34+ path_to_write_report : ./coverage/codecov_report.txt
35+ verbose : true
You can’t perform that action at this time.
0 commit comments