Skip to content

Commit

Permalink
Combine test run without pcntl into one job
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Apr 2, 2023
1 parent e638121 commit 873d784
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ jobs:
include:
- operating-system: 'ubuntu-latest'
php-version: '8.1'
composer-flags: '--ignore-platform-req=php'
phpunit-flags: ''
phpunit-description: ''
- operating-system: 'ubuntu-latest'
php-version: '8.1'
composer-flags: '--ignore-platform-req=php'
phpunit-flags: '-d disable_functions=pcntl_signal_dispatch'
phpunit-description: 'without pcntl'
composer-flags: '--ignore-platform-req=php+'

name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}

runs-on: ${{ matrix.operating-system }}

steps:
Expand Down Expand Up @@ -72,8 +64,11 @@ jobs:
php -v
composer info -D
- name: Run tests ${{ matrix.phpunit-description }}
run: php ${{ matrix.phpunit-flags }} vendor/bin/phpunit
- name: Run tests
run: php vendor/bin/phpunit

- name: Run tests without pcntl
run: php -d disable_functions=pcntl_signal_dispatch vendor/bin/phpunit

- name: Run Psalm
run: vendor/bin/psalm.phar --show-info=true
Expand Down

0 comments on commit 873d784

Please # to comment.