Skip to content

Commit

Permalink
Use explicit e2e-runner and test PHAR on PHP 8.0 with Xdebug (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
maks-rafalko committed Dec 10, 2021
1 parent adc3256 commit 9885adf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
coverage-driver: [pcov, xdebug]
e2e-runner: ['bin/infection']
include:
- { operating-system: 'windows-latest', php-version: '7.4', coverage-driver: 'xdebug' }
- { operating-system: 'ubuntu-latest', php-version: '7.4', coverage-driver: 'pcov' }
- { operating-system: 'windows-latest', php-version: '7.4', coverage-driver: 'xdebug', e2e-runner: 'bin/infection' }
- { operating-system: 'ubuntu-latest', php-version: '7.4', coverage-driver: 'pcov', e2e-runner: 'bin/infection' }
- { operating-system: 'ubuntu-latest', php-version: '8.0', coverage-driver: 'pcov', e2e-runner: 'build/infection.phar' }
- { operating-system: 'ubuntu-latest', php-version: '8.1', coverage-driver: 'pcov' }
- { operating-system: 'ubuntu-latest', php-version: '8.0', coverage-driver: 'xdebug', e2e-runner: 'build/infection.phar' }
- { operating-system: 'ubuntu-latest', php-version: '8.1', coverage-driver: 'pcov', e2e-runner: 'bin/infection' }

name: CI on ${{ matrix.operating-system }} with PHP ${{ matrix.php-version }}, using ${{ matrix.coverage-driver }} with ${{ matrix.e2e-runner }}

Expand Down Expand Up @@ -104,10 +105,13 @@ jobs:
env:
TERM: xterm-256color
run: |
if [[ "${{ matrix.php-version }}" == '8.1' ]]; then
export SYMFONY_DEPRECATIONS_HELPER=max[direct]=1
fi
make test-e2e E2E_PHPUNIT_GROUP=e2e INFECTION=bin/infection
- name: Run the whole set of E2E tests with prefixed PHAR
if: runner.os != 'Windows' && matrix.e2e-runner != 'bin/infection' && matrix.php-version == '8.0'
if: runner.os != 'Windows' && matrix.e2e-runner == 'build/infection.phar' && (matrix.php-version == '8.0' || matrix.php-version == '8.1')
env:
TERM: xterm-256color
run: |
Expand Down

0 comments on commit 9885adf

Please sign in to comment.