@@ -59,16 +59,23 @@ jobs:
5959 run : " vendor/bin/phpstan analyse --no-progress --error-format=github"
6060
6161 tests :
62- name : " Tests"
62+ name : " Tests (PHP ${{ matrix.php-version }}) "
6363 runs-on : " ubuntu-latest"
6464
65+ strategy :
66+ fail-fast : false
67+ matrix :
68+ php-version :
69+ - " 8.4"
70+ - " 8.5"
71+
6572 steps :
6673 - uses : " actions/checkout@v7"
6774
6875 - name : " Setup PHP"
6976 uses : " shivammathur/setup-php@v2"
7077 with :
71- php-version : " 8.5 "
78+ php-version : " ${{ matrix.php-version }} "
7279 tools : " composer"
7380 coverage : " xdebug"
7481
8188 run : " vendor/bin/phpunit --configuration phpunit.xml.dist --colors=always"
8289
8390 - name : " Generate coverage summary"
84- if : ${{ ! cancelled() }}
91+ if : ${{ ! cancelled() && matrix.php-version == '8.5' }}
8592 run : |
8693 echo '```' > var/.phpunit.cache/coverage.txt
8794 vendor/bin/phpunit \
@@ -92,18 +99,18 @@ jobs:
9299
93100 - name : " Report test results"
94101 uses : " mikepenz/action-junit-report@v6"
95- if : ${{ ! cancelled() }}
102+ if : ${{ ! cancelled() && matrix.php-version == '8.5' }}
96103 with :
97104 report_paths : " var/.phpunit.cache/junit.xml"
98105 annotate_only : true
99106
100107 - name : " Post coverage summary"
101- if : ${{ ! cancelled() }}
108+ if : ${{ ! cancelled() && matrix.php-version == '8.5' }}
102109 run : ' cat var/.phpunit.cache/coverage.txt >> "$GITHUB_STEP_SUMMARY"'
103110
104111 - name : " Upload coverage report"
105112 uses : " actions/upload-artifact@v7"
106- if : ${{ ! cancelled() }}
113+ if : ${{ ! cancelled() && matrix.php-version == '8.5' }}
107114 with :
108115 name : " coverage-report"
109116 path : |
0 commit comments