Update tests.yml

This commit is contained in:
Dan Harrin
2026-01-03 15:35:04 +00:00
parent ac1eb7daa4
commit 1182b78291
+13 -1
View File
@@ -12,7 +12,7 @@ jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
php: [8.4, 8.3, 8.2]
laravel: [12.*, 11.*]
@@ -79,9 +79,21 @@ jobs:
- name: Cache Blade views
run: ./vendor/bin/testbench view:cache
- name: Execute tests (parallel)
id: parallel-tests
continue-on-error: true
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --exclude-group=commands
env:
DB_PASSWORD: password
- name: Execute tests (non-parallel fallback)
if: steps.parallel-tests.outcome == 'failure'
id: non-parallel-tests
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --exclude-group=commands
env:
DB_PASSWORD: password
- name: Warn about parallel test failure
if: steps.parallel-tests.outcome == 'failure' && steps.non-parallel-tests.outcome == 'success'
run: |
echo "::warning::Parallel tests failed but non-parallel tests passed. This may indicate a race condition or test isolation issue."
- name: Execute command tests (serial)
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --group=commands
env: