Skip to content

Commit 5716052

Browse files
committed
Better upload to Codecov.io in GitHub actions
1 parent 2ebe0c6 commit 5716052

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ jobs:
158158
- name: "Tests"
159159
run: "bin/phing tests-without-code-coverage"
160160

161-
code-coverage:
162-
name: "Code coverage"
161+
upload-code-coverage:
162+
name: "Upload code coverage"
163163

164164
runs-on: "ubuntu-latest"
165165

@@ -188,6 +188,9 @@ jobs:
188188
run: bin/phing tests
189189

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

0 commit comments

Comments
 (0)