Skip to content

Commit

Permalink
Ensure coverage clove.info file is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
andstor committed Apr 27, 2020
1 parent 9561e8c commit 86e56be
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,22 @@ jobs:
npm run build --if-present
npm run coverage || npm test
- name: File existence
- name: Coverage file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: ./coverage/lcov.info

- name: "Read coverage file contents"
if: steps.check_files.outputs.files_exists == 'true'
id: coverage_file
uses: andstor/file-reader-action@v1
with:
path: ./coverage/lcov.info

- name: Coveralls
if: steps.check_files.outputs.files_exists == 'true'
if: steps.check_files.outputs.files_exists == 'true' &&
steps.coverage_file.outputs.contents != ''
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 86e56be

Please sign in to comment.