2022-04-12 15:58:47 +00:00
|
|
|
# This workflow runs system tests: Use the Rector application from the source
|
|
|
|
# checkout to process "fixture" projects in tests/system-tests
|
|
|
|
# to see if those can be processed successfully
|
|
|
|
name: End to End tests that expect diff
|
|
|
|
|
|
|
|
on:
|
2023-09-27 14:38:01 +00:00
|
|
|
pull_request: null
|
2022-04-12 15:58:47 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
end_to_end_with_diff:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
|
|
|
directory:
|
|
|
|
- 'e2e/attributes'
|
|
|
|
|
2023-09-27 14:37:52 +00:00
|
|
|
name: Tests with diffs on PHP ${{ matrix.php_version }} - ${{ matrix.directory }}
|
2022-04-12 15:58:47 +00:00
|
|
|
|
|
|
|
steps:
|
2023-09-04 14:00:44 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-04-12 15:58:47 +00:00
|
|
|
|
|
|
|
- uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php_version }}
|
|
|
|
coverage: none
|
|
|
|
|
|
|
|
-
|
2023-09-27 14:30:16 +00:00
|
|
|
run: composer require rector/rector --dev
|
2022-04-12 15:58:47 +00:00
|
|
|
working-directory: ${{ matrix.directory }}
|
|
|
|
|
|
|
|
-
|
2023-09-27 14:30:16 +00:00
|
|
|
run: vendor/bin/rector process --dry-run --ansi
|
2022-04-12 15:58:47 +00:00
|
|
|
working-directory: ${{ matrix.directory }}
|