File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 test :
14- runs-on : ubuntu-latest
14+ runs-on : ${{ matrix.os }}
1515 strategy :
1616 matrix :
17+ os : [ubuntu-latest, windows-latest]
1718 php-version : [8.2, 8.3, 8.4, 8.5]
1819 prefer-lowest : ['']
1920 include :
2021 - php-version : ' 8.2'
22+ os : ubuntu-latest
2123 prefer-lowest : ' prefer-lowest'
2224
2325 steps :
3234 uses : actions/checkout@v4
3335
3436 - name : Install dependencies
37+ shell : bash
3538 run : |
3639 if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
3740 composer update --prefer-lowest --prefer-stable
4144 fi
4245
4346 - name : Run PHPUnit
47+ shell : bash
4448 run : |
45- if [[ ${{ matrix.php-version }} == '8.5' ]]; then
49+ if [[ ${{ matrix.php-version }} == '8.5' && ${{ matrix.os }} == 'ubuntu-latest' ]]; then
4650 vendor/bin/phpunit --coverage-clover=coverage.xml --log-junit junit.xml
4751 else
4852 vendor/bin/phpunit
5357 run : vendor/bin/validate-prefer-lowest -m
5458
5559 - name : Upload coverage reports to Codecov
56- if : success() && matrix.php-version == '8.5'
60+ if : success() && matrix.php-version == '8.5' && matrix.os == 'ubuntu-latest'
5761 uses : codecov/codecov-action@v5
5862 with :
5963 token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments