Skip to content

Commit d97463d

Browse files
committed
use bashunit
1 parent 904ff28 commit d97463d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ jobs:
318318
../../bin/phpstan analyze test.php --level=0
319319
- script: |
320320
cd e2e/composer-version-config-invalid
321-
OUTPUT=$(../../bin/phpstan 2>&1 || true)
322-
grep 'Invalid configuration' <<< "$OUTPUT"
323-
grep 'Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.' <<< "$OUTPUT"
321+
OUTPUT=$(../bashunit -a exit_code "1" ../../bin/phpstan)
322+
echo "$OUTPUT"
323+
../bashunit -a contains 'Invalid configuration' "$OUTPUT"
324+
../bashunit -a contains 'Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.' "$OUTPUT"
324325
325326
steps:
326327
- name: "Checkout"
@@ -337,5 +338,8 @@ jobs:
337338
- name: "Install dependencies"
338339
run: "composer install --no-interaction --no-progress"
339340

341+
- name: "Install bashunit"
342+
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.17.0"
343+
340344
- name: "Test"
341345
run: ${{ matrix.script }}

0 commit comments

Comments
 (0)