File tree Expand file tree Collapse file tree 2 files changed +22
-15
lines changed Expand file tree Collapse file tree 2 files changed +22
-15
lines changed Original file line number Diff line number Diff line change
1
+ name : Downgrade PHP 8.3 to PHP 7.4
2
+
3
+ runs :
4
+ using : composite
5
+
6
+ steps :
7
+ - uses : actions/checkout@v2
8
+
9
+ - uses : shivammathur/setup-php@v2
10
+ with :
11
+ php-version : 8.3
12
+ coverage : none
13
+
14
+ - uses : ramsey/composer-install@v2
15
+
16
+ # downgrade /src to PHP 7.4
17
+ - run : vendor/bin/rector process src bin --config build/rector-downgrade-php-74.php --ansi
18
+
19
+ # copy PHP 7.4 composer
20
+ - run : cp build/composer-php-74.json composer.json
21
+ - run : cp build/composer-php-74.lock composer.lock
Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - uses : actions/checkout@v2
14
-
15
- - uses : shivammathur/setup-php@v2
16
- with :
17
- php-version : 8.3
18
- coverage : none
19
-
20
- - uses : ramsey/composer-install@v2
21
-
22
- # downgrade /src to PHP 7.4
23
- - run : vendor/bin/rector process src bin --config build/rector-downgrade-php-74.php --ansi
24
-
25
- # copy PHP 7.4 composer
26
- - run : cp build/composer-php-74.json composer.json
27
- - run : cp build/composer-php-74.lock composer.lock
13
+ - uses : ./.github/actions/downgrade
28
14
29
15
# clear the dev files
30
16
- run : find . ! -name 'bin' ! -name 'src' ! -name 'vendor' ! -name 'composer.json' ! -name 'composer.lock' ! -name 'README.md' -mindepth 1 -delete
You can’t perform that action at this time.
0 commit comments