Skip to content

Commit 364b04e

Browse files
committed
Use plain phpstan action
1 parent a5322cd commit 364b04e

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

.github/autoload-tests.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/tests.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ on:
77
branches: [ master ]
88

99
jobs:
10+
phpstan:
11+
12+
name: PHPStan
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: php-actions/composer@v5
18+
19+
- name: PHPStan Static Analysis
20+
uses: php-actions/phpstan@v3
21+
with:
22+
php_version: 7.4
23+
configuration: phpstan.neon
24+
1025
unit-tests:
1126

1227
name: Unit tests
@@ -90,24 +105,6 @@ jobs:
90105
- uses: actions/checkout@v2
91106
- uses: extdn/github-actions-m2/magento-mess-detector@master
92107

93-
phpstan:
94-
name: Magento 2 PHPStan
95-
runs-on: ubuntu-latest
96-
steps:
97-
- uses: actions/checkout@v2
98-
- uses: extdn/github-actions-m2/magento-phpstan@master
99-
with:
100-
composer_name: integer-net/magento2-shippingpreselection
101-
# Note: module_source needs to be directory with composer.json, otherwise module is installed from github
102-
# and phpstan runs on local directory with broken autoloading. So the following does NOT work:
103-
#
104-
# module_source: src
105-
#
106-
# A possible workaround is to modify the root composer autoload section in a preinstall script:
107-
#
108-
magento_preinstall_script: .github/autoload-tests.sh
109-
env:
110-
INPUT_MAGENTO_PRE_INSTALL_SCRIPT: .github/autoload-tests.sh
111108
publish-test-results:
112109
name: "Publish Tests Results"
113110
needs:

0 commit comments

Comments
 (0)