[CI] split tests by paths

This commit is contained in:
TomasVotruba 2021-03-15 20:59:26 +01:00
parent 8fbf17bc5f
commit c6196ad2ce

View File

@ -9,12 +9,13 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0']
include:
- php: '7.3'
dependencies: 'lowest'
php: ['7.3', '7.4', '8.0']
path:
- tests
- rules-tests
- packages-tests
name: PHP ${{ matrix.php }} tests
name: PHP ${{ matrix.php }} tests for ${{ matrix.path }}
steps:
- uses: actions/checkout@v2
@ -23,10 +24,6 @@ jobs:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
- run: composer update --prefer-lowest --no-progress --ansi
if: "matrix.dependencies == 'lowest'"
- uses: "ramsey/composer-install@v1"
- run: composer install --no-progress --ansi
if: "matrix.dependencies != 'lowest'"
- run: vendor/bin/phpunit
- run: vendor/bin/phpunit ${{ matrix.path }}