Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/php-cs-stan-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,14 @@ jobs:
- name: 'Dump Composer autoloader'
run: 'composer dump-autoload --classmap-authoritative --no-cache'

- name: 'Run PHPUnit with coverage'
run: 'vendor/bin/phpunit --coverage-clover=${{ matrix.php-version }}-${{ strategy.job-index }}-clover.xml'
- name: 'Run PHPUnit with coverage and JUnit report'
run: 'vendor/bin/phpunit --coverage-clover=${{ matrix.php-version }}-${{ strategy.job-index }}-clover.xml --log-junit ${{ matrix.php-version }}-${{ strategy.job-index }}-junit.xml'

- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
files: './${{ matrix.php-version }}-${{ strategy.job-index }}-junit.xml'
token: ${{ secrets.CODECOV_TOKEN }}

- name: Check test coverage
id: test-coverage
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/php-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,14 @@ jobs:
- name: 'Dump Composer autoloader'
run: 'composer dump-autoload --classmap-authoritative --no-cache'

- name: 'Run PHPUnit with coverage'
run: 'vendor/bin/phpunit --coverage-clover=${{ matrix.php-version }}-${{ strategy.job-index }}-clover.xml'
- name: 'Run PHPUnit with coverage and JUnit report'
run: 'vendor/bin/phpunit --coverage-clover=${{ matrix.php-version }}-${{ strategy.job-index }}-clover.xml --log-junit ${{ matrix.php-version }}-${{ strategy.job-index }}-junit.xml'

- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
files: './${{ matrix.php-version }}-${{ strategy.job-index }}-junit.xml'
token: ${{ secrets.CODECOV_TOKEN }}

- name: Check test coverage
id: test-coverage
Expand Down