Skip to content

Commit

Permalink
Merge pull request PrestaShop#154 from leemyongpakvn/BumpMinCompatToP…
Browse files Browse the repository at this point in the history
…HP713nPS177_phpdevtools4_phpcsfixer3

Bump min compatibility to PHP 7.1.3 and PS 1.7.7
  • Loading branch information
Hlavtox authored Dec 4, 2023
2 parents 20cdcca + f2175e1 commit 6cd9734
Show file tree
Hide file tree
Showing 6 changed files with 1,199 additions and 399 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ on: [push, pull_request]
jobs:
# Check there is no syntax errors in the project
php-linter:
name: PHP Syntax check 5.6 => 8.1
name: PHP Syntax check 7.1 => 8.1
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
- name: PHP syntax checker 7.1
uses: prestashop/github-action-php-lint/7.1@master

- name: PHP syntax checker 7.2
uses: prestashop/github-action-php-lint/7.2@master
Expand Down Expand Up @@ -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') }}
Expand All @@ -58,26 +58,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
presta-versions: ['1.7.6', '1.7.7', '1.7.8', 'latest']
presta-versions: ['1.7.7', '1.7.8', '8.0', 'latest']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
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
Expand Down
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@
}
],
"require": {
"php": ">=5.6"
"php": ">=7.1.3"
},
"require-dev": {
"prestashop/php-dev-tools": "3.*"
},
"config": {
"preferred-install": "dist",
"optimize-autoloader": true,
"prepend-autoloader": false,
"platform": {
"php": "5.6"
}
"prepend-autoloader": false
},
"autoload": {
"classmap": [
Expand Down
Loading

0 comments on commit 6cd9734

Please sign in to comment.