Skip to content

Commit 6d07777

Browse files
committed
Add Codecov Test Analytics
1 parent 971e1e1 commit 6d07777

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ jobs:
8282
run: composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress
8383
- name: Check composer.json
8484
run: composer normalize --dry-run
85-
- name: Run tests with coverage
86-
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
87-
run: php vendor/bin/phpunit --coverage-clover=coverage.xml
8885
- name: Run tests
8986
run: vendor/bin/phpunit
9087
- name: Run integration tests
@@ -101,10 +98,18 @@ jobs:
10198
- name: Run phan with polyfill
10299
if: ${{ matrix.os == 'windows-latest' }}
103100
run: vendor/bin/phan --allow-polyfill-parser
101+
- name: Run tests with coverage
102+
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
103+
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --log-junit=junit.xml
104104
- name: Upload coverage to Codecov
105+
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
105106
uses: codecov/codecov-action@v5
106107
with:
107-
verbose: true
108+
token: ${{ secrets.CODECOV_TOKEN }}
109+
- name: Upload test results to Codecov
110+
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
111+
uses: codecov/test-results-action@v1
112+
with:
108113
token: ${{ secrets.CODECOV_TOKEN }}
109114

110115
slack-notify:

0 commit comments

Comments
 (0)