-
-
Notifications
You must be signed in to change notification settings - Fork 687
40 lines (33 loc) · 1.21 KB
/
e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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
on:
push:
branches:
- main
jobs:
end_to_end:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
directory:
- 'e2e/define-constant'
- 'e2e/dont-execute-code'
- 'e2e/parse-php7-code'
- 'e2e/parse-php8-code'
name: Tests on PHP ${{ matrix.php_version }} - ${{ matrix.directory }}
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none
-
run: composer require rector/rector:dev-main --dev
working-directory: ${{ matrix.directory }}
-
run: vendor/bin/rector process --dry-run --ansi
working-directory: ${{ matrix.directory }}