9
9
name : PHP Syntax ${{ matrix.php-versions }}
10
10
runs-on : ${{ matrix.operating-system }}
11
11
strategy :
12
- max-parallel : 5
12
+ max-parallel : 2
13
13
matrix :
14
14
operating-system : [ubuntu-latest]
15
15
php-versions : ['7.3', '8.1']
@@ -34,14 +34,13 @@ jobs:
34
34
name : PHP Stan ${{ matrix.directories }} - ${{ matrix.config_files }}
35
35
runs-on : [ubuntu-latest]
36
36
strategy :
37
- max-parallel : 2
37
+ max-parallel : 1
38
38
matrix :
39
39
directories : [
40
- ' ' ,
41
- # 'lib/',
40
+ ' '
42
41
]
43
42
config_files : [
44
- ' .github/phpstan.neon' ,
43
+ ' .github/phpstan.neon' ,
45
44
]
46
45
steps :
47
46
- uses : actions/checkout@v3
@@ -96,13 +95,33 @@ jobs:
96
95
config_files : [
97
96
' .github/phpstan_experimental_level.neon' ,
98
97
]
99
- include :
100
- - directories : [
101
- ' lib/Mage' ,
102
- ' lib/Magento' ,
103
- ' lib/Varien'
104
- ]
105
- config_files : ' .github/phpstan.neon'
98
+ steps :
99
+ - uses : actions/checkout@v3
100
+ - name : Install dependencies
101
+ run : composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
102
+ - name : ensure existance of ./app/code/local
103
+ run : mkdir -p app/code/local
104
+ - name : PHPStan Static Analysis
105
+ continue-on-error : true
106
+ run : php vendor/bin/phpstan.phar analyze --error-format=raw -c ${{ matrix.config_files }} ${{ matrix.directories }}
107
+
108
+ php_stan_experimental_lib :
109
+ name : PHP Stan ${{ matrix.directories }} - ${{ matrix.config_files }} - experimental
110
+ runs-on : [ubuntu-latest]
111
+ needs : php_stan
112
+ strategy :
113
+ max-parallel : 6
114
+ fail-fast : false
115
+ matrix :
116
+ directories : [
117
+ ' lib/Mage' ,
118
+ ' lib/Magento' ,
119
+ ' lib/Varien'
120
+ ]
121
+ config_files : [
122
+ ' .github/phpstan.neon' ,
123
+ ' .github/phpstan_experimental_level.neon' ,
124
+ ]
106
125
steps :
107
126
- uses : actions/checkout@v3
108
127
- name : Install dependencies
0 commit comments