mirror of
https://github.com/rectorphp/rector.git
synced 2024-07-03 08:03:30 +00:00
66 lines
2.2 KiB
YAML
66 lines
2.2 KiB
YAML
# This workflow runs system tests: Use the Rector application from the source
|
|
# checkout to process "fixture" projects in e2e/ directory
|
|
# to see if those can be processed successfully
|
|
name: End to End tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
|
|
COMPOSER_ROOT_VERSION: "dev-main"
|
|
|
|
jobs:
|
|
end_to_end:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php_version: ['8.1']
|
|
directory:
|
|
- 'e2e/applied-rule-change-docblock'
|
|
- 'e2e/applied-rule-return-array-nodes'
|
|
- 'e2e/no-parallel-reflection-resolver'
|
|
- 'e2e/parallel-custom-config'
|
|
- 'e2e/parallel-reflection-resolver'
|
|
- 'e2e/plain-views'
|
|
- 'e2e/template-extends'
|
|
- 'e2e/use-rector-configurator'
|
|
- 'e2e/applied-rule-removed-node'
|
|
|
|
name: End to end test - ${{ matrix.directory }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php_version }}
|
|
coverage: none
|
|
|
|
# run in root rector-src
|
|
- run: composer install --ansi
|
|
|
|
# run in e2e subdir
|
|
-
|
|
run: composer install --ansi
|
|
working-directory: ${{ matrix.directory }}
|
|
|
|
# run e2e test
|
|
- run: php ../e2eTestRunner.php -c custom/config/rector.php
|
|
working-directory: ${{ matrix.directory }}
|
|
if: ${{ matrix.directory == 'e2e/parallel-custom-config' }}
|
|
|
|
- run: php ../e2eTestRunner.php --config custom/config/rector.php
|
|
working-directory: ${{ matrix.directory }}
|
|
if: ${{ matrix.directory == 'e2e/parallel-custom-config' }}
|
|
|
|
- run: php ../e2eTestRunner.php
|
|
working-directory: ${{ matrix.directory }}
|
|
if: ${{ matrix.directory != 'e2e/parallel-custom-config' }}
|