chore: runs tests in Parallel on CI

This commit is contained in:
Nuno Maduro
2023-02-20 17:41:43 +00:00
parent 658c428b71
commit ae8df3f51d
2 changed files with 3 additions and 5 deletions

View File

@ -15,9 +15,8 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
php: ['8.1', '8.2']
dependency-version: [prefer-lowest, prefer-stable]
parallel: ['', '--parallel']
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} - ${{ matrix.parallel }}
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
@ -41,9 +40,8 @@ jobs:
- name: Unit Tests
run: composer test:unit
- name: Unit Tests
- name: Unit Tests in Parallel
run: test:parallel
if: ${{ false }} # Parallel's not yet supported.
- name: Integration Tests
run: composer test:integration

View File

@ -71,7 +71,7 @@
"test:types": "phpstan analyse --ansi --memory-limit=-1 --debug",
"test:unit": "php bin/pest --colors=always --exclude-group=integration --compact",
"test:inline": "php bin/pest --colors=always --configuration=phpunit.inline.xml",
"test:parallel": "exit 1",
"test:parallel": "php bin/pest --colors=always --exclude-group=integration --parallel",
"test:integration": "php bin/pest --colors=always --group=integration -v",
"update:snapshots": "REBUILD_SNAPSHOTS=true php bin/pest --colors=always",
"test": [