Skip to content

Commit 8fa4583

Browse files
Update Codecov.io action(s)
1 parent ae105fd commit 8fa4583

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
@@ -79,9 +79,15 @@ jobs:
7979
run: "./tools/composer update --no-ansi --no-interaction --no-progress"
8080

8181
- name: "Run tests with PHPUnit"
82-
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
82+
run: "vendor/bin/phpunit --log-junit junit.xml --coverage-clover=coverage.xml"
8383

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

0 commit comments

Comments
 (0)