File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 25
25
run : " npm ci"
26
26
- name : Build project
27
27
run : " npm run build"
28
- - name : Run tests
29
- run : " npm test"
28
+ - name : Run tests with coverage+test reporting
29
+ run : |
30
+ npm test -- --experimental-test-coverage \
31
+ --test-reporter=lcov --test-reporter-destination=lcov.info \
32
+ --test-reporter=spec --test-reporter-destination=stdout \
33
+ --test-reporter=junit --test-reporter-destination=junit.xml
34
+ - name : Upload coverage reports to Codecov
35
+ uses : codecov/codecov-action@v5
36
+ with :
37
+ token : ${{ secrets.CODECOV_TOKEN }}
38
+ slug : SpacingBat3/ReForged
39
+ - name : Upload test results to CodeCov
40
+ if : ${{ !cancelled() }}
41
+ uses : codecov/test-results-action@v1
42
+ with :
43
+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments