Skip to content

Commit

Permalink
chore: CD-306297 Updated github actions for matrix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcesoldier committed Mar 21, 2024
1 parent a9c8783 commit 25f90d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ jobs:
run: find . -name \*.php ! -path "./.Build/*" ! -path "./scripts/*" ! -path "./typo3_src/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;

- name: Unit Tests without coverage
if: matrix.typo3 != '^10.4' || matrix.php != '7.4'
if: matrix.typo3 != '^11.5' || matrix.php != '8.3'
run: |
export "UNIT_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests-v10.xml
.Build/bin/phpunit --colors -c $UNIT_XML Tests
- name: Unit Tests with coverage without 8.0
if: matrix.typo3 == '^11.5' && matrix.php == '7.4'
- name: Unit Tests with coverage without 8.3
if: matrix.typo3 == '^11.5' && matrix.php == '8.3'
run: |
export "UNIT_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests-v10.xml
.Build/bin/phpunit --whitelist Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests
- name: Upload coverage results to Scrutinizer
if: matrix.typo3 == '^10.4'
if: matrix.typo3 == '^11.5' && matrix.php == '8.3'
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover unittest-coverage.clover

0 comments on commit 25f90d5

Please sign in to comment.