update php-dev-tools v3tov4, github actions v2tov3
This commit is contained in:
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.0.0
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
- name: PHP syntax checker 5.6
|
- name: PHP syntax checker 5.6
|
||||||
uses: prestashop/github-action-php-lint/5.6@master
|
uses: prestashop/github-action-php-lint/5.6@master
|
||||||
@@ -38,10 +38,10 @@ jobs:
|
|||||||
php-version: '7.4'
|
php-version: '7.4'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.0.0
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: php-${{ hashFiles('composer.lock') }}
|
key: php-${{ hashFiles('composer.lock') }}
|
||||||
@@ -50,7 +50,7 @@ jobs:
|
|||||||
run: composer install
|
run: composer install
|
||||||
|
|
||||||
- name: Run PHP-CS-Fixer
|
- 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
|
# Run PHPStan against the module and a PrestaShop release
|
||||||
phpstan:
|
phpstan:
|
||||||
@@ -66,18 +66,18 @@ jobs:
|
|||||||
php-version: '7.4'
|
php-version: '7.4'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.0.0
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
# Add vendor folder in cache to make next builds faster
|
# Add vendor folder in cache to make next builds faster
|
||||||
- name: Cache vendor folder
|
- name: Cache vendor folder
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: php-${{ hashFiles('composer.lock') }}
|
key: php-${{ hashFiles('composer.lock') }}
|
||||||
|
|
||||||
# Add composer local folder in cache to make next builds faster
|
# Add composer local folder in cache to make next builds faster
|
||||||
- name: Cache composer folder
|
- name: Cache composer folder
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.composer/cache
|
path: ~/.composer/cache
|
||||||
key: php-composer-cache
|
key: php-composer-cache
|
||||||
|
|||||||
+2
-2
@@ -10,10 +10,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.4.0"
|
"php": ">=5.6.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"prestashop/php-dev-tools": "^3.4"
|
"prestashop/php-dev-tools": "^4.3"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"preferred-install": "dist",
|
"preferred-install": "dist",
|
||||||
|
|||||||
Generated
+1129
-384
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user