Skip to content

Commit b086958

Browse files
committed
Enable testing on windows in CI
1 parent 0d34c57 commit b086958

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ env:
1111

1212
jobs:
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:
@@ -32,6 +34,7 @@ jobs:
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
@@ -41,8 +44,9 @@ jobs:
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
@@ -53,7 +57,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)