Skip to content

Commit 873d784

Browse files
committed
Combine test run without pcntl into one job
1 parent e638121 commit 873d784

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Diff for: .github/workflows/ci.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,9 @@ jobs:
1313
include:
1414
- operating-system: 'ubuntu-latest'
1515
php-version: '8.1'
16-
composer-flags: '--ignore-platform-req=php'
17-
phpunit-flags: ''
18-
phpunit-description: ''
19-
- operating-system: 'ubuntu-latest'
20-
php-version: '8.1'
21-
composer-flags: '--ignore-platform-req=php'
22-
phpunit-flags: '-d disable_functions=pcntl_signal_dispatch'
23-
phpunit-description: 'without pcntl'
16+
composer-flags: '--ignore-platform-req=php+'
2417

2518
name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}
26-
2719
runs-on: ${{ matrix.operating-system }}
2820

2921
steps:
@@ -72,8 +64,11 @@ jobs:
7264
php -v
7365
composer info -D
7466
75-
- name: Run tests ${{ matrix.phpunit-description }}
76-
run: php ${{ matrix.phpunit-flags }} vendor/bin/phpunit
67+
- name: Run tests
68+
run: php vendor/bin/phpunit
69+
70+
- name: Run tests without pcntl
71+
run: php -d disable_functions=pcntl_signal_dispatch vendor/bin/phpunit
7772

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

0 commit comments

Comments
 (0)