mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-13 12:33:52 +01:00
35 lines
852 B
YAML
35 lines
852 B
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request: null
|
|
|
|
env:
|
|
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
|
|
COMPOSER_ROOT_VERSION: "dev-main"
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: ['7.3', '7.4', '8.0']
|
|
path:
|
|
- tests
|
|
- rules-tests
|
|
- packages-tests
|
|
|
|
name: PHP ${{ matrix.php }} tests for ${{ matrix.path }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
-
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
coverage: none
|
|
|
|
- uses: "ramsey/composer-install@v1"
|
|
|
|
- run: vendor/bin/phpunit ${{ matrix.path }}
|