mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-08 12:20:52 +00:00
[CI] split tests by paths
This commit is contained in:
parent
8fbf17bc5f
commit
c6196ad2ce
19
.github/workflows/tests.yaml
vendored
19
.github/workflows/tests.yaml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user