Skip to content

Commit be7446b

Browse files
committed
Fixes 4
1 parent a9267cc commit be7446b

File tree

5 files changed

+5
-45
lines changed

5 files changed

+5
-45
lines changed

.github/workflows/extdn-phpstan-pre-install.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/extdn-phpstan.yml.old

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/integration-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
image: yireo/opensearch
2222
env:
2323
'discovery.type': single-node
24-
'xpack.security.enabled': false
2524
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
2625
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
2726
redis:

.github/workflows/static-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ jobs:
1919
cd /tmp/magento
2020
composer config repositories.local-source path package-source/
2121
composer config --no-plugins allow-plugins true
22-
composer require --prefer-source -- ${COMPOSER_NAME}:@dev phpstan/phpstan bitexpert/phpstan-magento phpstan/extension-installer
22+
composer require --prefer-source -- ${COMPOSER_NAME}:@dev
23+
composer require --dev --prefer-source -- phpstan/phpstan bitexpert/phpstan-magento phpstan/extension-installer
2324
2425
- name: Run Magento 2 PHPStan Tests
2526
run: |
2627
export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
27-
php -d memory_limit=4G ./vendor/bin/phpstan analyse ./vendor/$COMPOSER_NAME/
28+
export LEVEL=`echo '<?= json_decode(file_get_contents("MODULE.json"), true)["phpstan_level"];' | php`
29+
php -d memory_limit=4G /tmp/magento/vendor/bin/phpstan analyse --level $LEVEL ${GITHUB_WORKSPACE}
2830

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Magento 2 Unit Tests
2-
#on: ['push', 'pull_request']
3-
on: ['pull_request']
2+
on: ['push', 'pull_request']
43

54
jobs:
65
unit-tests:

0 commit comments

Comments
 (0)