File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,22 @@ jobs:
2222 npm run build --if-present
2323 npm run coverage || npm test
2424
25- - name : File existence
25+ - name : Coverage file existence
2626 id : check_files
2727 uses : andstor/file-existence-action@v1
2828 with :
2929 files : ./coverage/lcov.info
30+
31+ - name : " Read coverage file contents"
32+ if : steps.check_files.outputs.files_exists == 'true'
33+ id : coverage_file
34+ uses : andstor/file-reader-action@v1
35+ with :
36+ path : ./coverage/lcov.info
3037
3138 - name : Coveralls
32- if : steps.check_files.outputs.files_exists == 'true'
39+ if : steps.check_files.outputs.files_exists == 'true' &&
40+ steps.coverage_file.outputs.contents != ''
3341 uses : coverallsapp/github-action@master
3442 with :
3543 github-token : ${{ secrets.GITHUB_TOKEN }}
36-
Original file line number Diff line number Diff line change 77 "build" : " webpack" ,
88 "watch" : " webpack --watch" ,
99 "test" : " jest --passWithNoTests" ,
10- "coverage" : " npm test -- --coverage --coverageReporters=text- lcov" ,
10+ "coverage" : " npm test -- --coverage --coverageReporters=lcov" ,
1111 "prepare" : " npm run build"
1212 },
1313 "repository" : {
You can’t perform that action at this time.
0 commit comments