update php-dev-tools v3tov4, github actions v2tov3

This commit is contained in:
leemyong pakvn
2023-05-16 14:55:16 +07:00
parent 8181943ee1
commit 01f86bccd9
4 changed files with 1138 additions and 393 deletions
+7 -7
View File
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v3.1.0
- name: PHP syntax checker 5.6
uses: prestashop/github-action-php-lint/5.6@master
@@ -38,10 +38,10 @@ jobs:
php-version: '7.4'
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v3.1.0
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
@@ -50,7 +50,7 @@ jobs:
run: composer install
- name: Run PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no --diff-format udiff
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no
# Run PHPStan against the module and a PrestaShop release
phpstan:
@@ -66,18 +66,18 @@ jobs:
php-version: '7.4'
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v3.1.0
# Add vendor folder in cache to make next builds faster
- name: Cache vendor folder
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
# Add composer local folder in cache to make next builds faster
- name: Cache composer folder
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: php-composer-cache
+2 -2
View File
@@ -10,10 +10,10 @@
}
],
"require": {
"php": ">=5.4.0"
"php": ">=5.6.0"
},
"require-dev": {
"prestashop/php-dev-tools": "^3.4"
"prestashop/php-dev-tools": "^4.3"
},
"config": {
"preferred-install": "dist",
Generated
+1129 -384
View File
File diff suppressed because it is too large Load Diff