File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments