Skip to content

Commit c70013a

Browse files
Update Codecov.io action(s)
1 parent 6f9a7f3 commit c70013a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ci.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,15 @@ jobs:
8080
run: "./tools/composer update --no-ansi --no-interaction --no-progress"
8181

8282
- name: "Run tests with PHPUnit"
83-
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
83+
run: "vendor/bin/phpunit --log-junit junit.xml --coverage-clover=coverage.xml"
8484

85-
- name: "Send code coverage report to Codecov.io"
86-
env:
87-
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
88-
run: "bash <(curl -s https://codecov.io/bash) || true"
85+
- name: Upload test results to Codecov.io
86+
if: ${{ !cancelled() }}
87+
uses: codecov/test-results-action@v1
88+
with:
89+
token: ${{ secrets.CODECOV_TOKEN }}
90+
91+
- name: Upload code coverage data to Codecov.io
92+
uses: codecov/codecov-action@v4
93+
with:
94+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)