Skip to content

Commit

Permalink
Better upload to Codecov.io in GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Jul 13, 2021
1 parent 2ebe0c6 commit 5716052
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ jobs:
- name: "Tests"
run: "bin/phing tests-without-code-coverage"

code-coverage:
name: "Code coverage"
upload-code-coverage:
name: "Upload code coverage"

runs-on: "ubuntu-latest"

Expand Down Expand Up @@ -188,6 +188,9 @@ jobs:
run: bin/phing tests

- name: "Upload to Codecov.io"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV }}"
run: "bash <(curl -s https://codecov.io/bash) -f temp/coverage.xml"
uses: codecov/codecov-action@v1
with:
token: "${{ secrets.CODECOV }}"
files: temp/coverage.xml
flags: unittests
fail_ci_if_error: true

0 comments on commit 5716052

Please sign in to comment.