Skip to content

Commit 4927576

Browse files
committed
fix phpunit building on windows
1 parent 2111aef commit 4927576

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ jobs:
4242
if: matrix.php-version == '8.2' && matrix.os == 'ubuntu-latest'
4343
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4444

45-
- name: Run PHPUnit
45+
- name: Run PHPUnit with coverage
46+
if: matrix.php-version == '8.2' && matrix.os == 'ubuntu-latest'
4647
run: |
47-
if [[ ${{ matrix.php-version }} == '8.2' && ${{ matrix.os }} == 'ubuntu-latest' ]]; then
48-
export CODECOVERAGE=1 && vendor/bin/phpunit --display-deprecations --display-incomplete --display-skipped --coverage-clover=coverage.xml
49-
else
50-
vendor/bin/phpunit
51-
fi
48+
export CODECOVERAGE=1
49+
vendor/bin/phpunit --display-deprecations --display-incomplete --display-skipped --coverage-clover=coverage.xml
50+
51+
- name: Run PHPUnit without coverage
52+
if: matrix.php-version != '8.2' || matrix.os != 'ubuntu-latest'
53+
run: vendor/bin/phpunit
5254

5355
- name: Submit code coverage
5456
if: matrix.php-version == '8.2' && matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)