Skip to content

Commit 0a50f4b

Browse files
committed
Fix composer install command for Windows and update test script options
1 parent 4e82bbd commit 0a50f4b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ jobs:
115115
116116
- name: Install dependencies
117117
if: matrix.stability != 'prefer-lowest'
118-
run: composer install --no-interaction --prefer-dist --optimize-autoloader ${{ matrix.os == 'windows-latest' && '--ignore-platform-req=ext-pcntl' || '' }}
118+
run: composer install --no-interaction --prefer-dist --optimize-autoloader ${{ matrix.os == 'windows-latest' && '--ignore-platform-req=ext-pcntl --ignore-platform-req=ext-posix' || '' }}
119119

120120
- name: Install dependencies (prefer-lowest)
121121
if: matrix.stability == 'prefer-lowest'
122-
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-lowest ${{ matrix.os == 'windows-latest' && '--ignore-platform-req=ext-pcntl' || '' }}
122+
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-lowest ${{ matrix.os == 'windows-latest' && '--ignore-platform-req=ext-pcntl --ignore-platform-req=ext-posix' || '' }}
123123

124124
- name: Execute tests
125125
run: composer test

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
"scripts": {
5353
"lint": "duster lint src",
5454
"fix": "duster fix src",
55-
"test": "phpunit --do-not-fail-on-skipped --no-coverage",
56-
"test:unit": "phpunit --do-not-fail-on-skipped --no-coverage tests/Unit",
57-
"test:integration": "phpunit --do-not-fail-on-skipped --no-coverage tests/Integration",
58-
"test:coverage": "XDEBUG_MODE=coverage phpunit --do-not-fail-on-skipped --coverage-html=coverage --coverage-text --coverage-xml=coverage",
55+
"test": "phpunit --no-coverage",
56+
"test:unit": "phpunit --no-coverage tests/Unit",
57+
"test:integration": "phpunit --no-coverage tests/Integration",
58+
"test:coverage": "XDEBUG_MODE=coverage phpunit --coverage-html=coverage --coverage-text --coverage-xml=coverage",
5959
"analyse": "phpstan analyse",
6060
"check": [
6161
"@analyse",

0 commit comments

Comments
 (0)