File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,20 @@ jobs:
60
60
- name : Downgrade src
61
61
run : php bin/transform-source ${{ env.TARGET_PHP_VERSION_ID }}
62
62
63
- - name : Setup PHP ${{ env.TARGET_PHP_VERSION }}
63
+ - name : Reinstall PHP for PHP ${{ env.TARGET_PHP_VERSION }}
64
64
uses : shivammathur/setup-php@v2
65
65
with :
66
66
php-version : ${{ env.TARGET_PHP_VERSION }}
67
67
coverage : none
68
68
env :
69
69
COMPOSER_TOKEN : ${{ secrets.RELEASE_TOKEN }}
70
70
71
+ - name : Re-install dependencies
72
+ run : composer update --ansi
73
+
74
+ - name : Run lint on src
75
+ run : vendor/bin/parallel-lint src --colors --show-deprecated
76
+
71
77
- name : Get tag for downgraded release
72
78
id : tag-downgraded
73
79
run : echo "${{ format('DOWNGRADED_TAG={0}.{1}', github.ref_name, env.TARGET_PHP_VERSION_ID) }}" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 14
14
- ' **.php'
15
15
- ' phpunit.dist.xml'
16
16
17
+ env :
18
+ TARGET_PHP_VERSION : ' 7.4'
19
+ TARGET_PHP_VERSION_ID : 70400
20
+
17
21
jobs :
18
22
extension-tests :
19
23
name : PHPUnit Extension Tests [PHP ${{ matrix.php-version }}]
55
59
- name : Install dependencies
56
60
run : composer update --ansi
57
61
62
+ - name : Downgrade src
63
+ run : php bin/transform-source ${{ env.TARGET_PHP_VERSION_ID }}
64
+
65
+ - name : Reinstall PHP for PHP ${{ env.TARGET_PHP_VERSION }}
66
+ uses : shivammathur/setup-php@v2
67
+ with :
68
+ php-version : ${{ env.TARGET_PHP_VERSION }}
69
+ coverage : none
70
+ env :
71
+ COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72
+
73
+ - name : Re-install dependencies
74
+ run : composer update --ansi
75
+
76
+ - name : Run lint on src
77
+ run : vendor/bin/parallel-lint src --colors --show-deprecated
78
+
58
79
- name : Run Extension Tests
59
80
run : vendor/bin/phpunit --no-coverage
Original file line number Diff line number Diff line change 31
31
"codeigniter4/shield" : " ^1.0@beta" ,
32
32
"friendsofphp/php-cs-fixer" : " ^3.20" ,
33
33
"nexusphp/cs-config" : " ^3.12" ,
34
+ "php-parallel-lint/php-parallel-lint" : " ^1.3" ,
34
35
"phpstan/extension-installer" : " ^1.3" ,
35
36
"phpstan/phpstan-deprecation-rules" : " ^1.1" ,
36
37
"phpstan/phpstan-phpunit" : " ^1.3" ,
You can’t perform that action at this time.
0 commit comments