Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 8, 2023
1 parent fa98055 commit 5da9e41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: ${{ matrix.coverage == 'true' && 'xdebug' || 'none' }}
coverage: ${{ matrix.coverage && 'xdebug' || 'none' }}

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
Expand All @@ -87,19 +87,19 @@ jobs:
run: npm run wp-env start

- name: Run tests
if: ${{ matrix.coverage != 'true' }}
if: ${{ ! matrix.coverage }}
run: |
npm run test-php
npm run test-php-multisite
- name: Run tests with coverage
if: ${{ matrix.coverage == 'true' }}
if: ${{ matrix.coverage }}
run: |
npm run test-php-coverage
npm run test-php-multisite-coverage
- name: Upload code coverage report
if: ${{ matrix.coverage == 'true' }}
if: ${{ matrix.coverage }}
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
with:
file: build/logs/*.xml
Expand Down

0 comments on commit 5da9e41

Please sign in to comment.