mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-01 21:00:58 +00:00
ci: keep the isolated test group out of the parallel pass
Passing --exclude-group on the command line overrides the phpunit.xml group exclusions, so the parallel CI pass was running the isolated database-refusal test inside a shared worker and poisoning its siblings (VACUUM inside a transaction, duplicate migrations table) - flakily, depending on sharding. Exclude it explicitly and run it serially like the other quarantined groups.
This commit is contained in:
@@ -101,9 +101,12 @@ jobs:
|
||||
uses: ramsey/composer-install@4.0.0
|
||||
|
||||
- name: Apply tests ${{ matrix.php-version }} (parallel)
|
||||
run: php artisan test --parallel --exclude-group=modules --exclude-group=architecture
|
||||
# CLI --exclude-group overrides the phpunit.xml exclusions, so the
|
||||
# isolated group must be re-excluded here or it poisons a worker.
|
||||
run: php artisan test --parallel --exclude-group=modules --exclude-group=architecture --exclude-group=isolated
|
||||
|
||||
- name: Apply module and architecture tests ${{ matrix.php-version }} (serial)
|
||||
- name: Apply module, architecture and isolated tests ${{ matrix.php-version }} (serial)
|
||||
run: |
|
||||
php artisan test --group=modules
|
||||
php artisan test --group=architecture
|
||||
php artisan test --group=isolated
|
||||
|
||||
Reference in New Issue
Block a user