Skip to content

Commit

Permalink
CI fix for PS9
Browse files Browse the repository at this point in the history
  • Loading branch information
L3RAZ committed Jan 28, 2025
1 parent 4ee2436 commit aca8389
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP 7.4
- name: Setup PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
php-version: "8.1"

- name: Cache vendor folder
uses: actions/cache@v1
Expand All @@ -36,18 +36,20 @@ jobs:
run: php vendor/bin/header-stamp --license=vendor/prestashop/header-stamp/assets/afl.txt --exclude=.github,node_modules,vendor,tests,_dev --dry-run

php-linter:
name: PHP Syntax check 7.2|7.3|7.4
name: PHP Syntax check 8.0|8.1|8.2|8.2
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'ready to review')
steps:
- name: Checkout
uses: actions/[email protected]
- name: PHP syntax checker 7.2
uses: prestashop/github-action-php-lint/7.2@master
- name: PHP syntax checker 7.3
uses: prestashop/github-action-php-lint/7.3@master
- name: PHP syntax checker 7.4
uses: prestashop/github-action-php-lint/7.4@master
- name: PHP syntax checker 8.0
uses: prestashop/github-action-php-lint/8.0@master
- name: PHP syntax checker 8.1
uses: prestashop/github-action-php-lint/8.1@master
- name: PHP syntax checker 8.2
uses: prestashop/github-action-php-lint/8.2@master
- name: PHP syntax checker 8.3
uses: prestashop/github-action-php-lint/8.3@master

php-cs-fixer:
name: PHP-CS-Fixer
Expand All @@ -64,7 +66,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
presta-versions: ["8.0.0", "latest"]
presta-versions: ["9.0.0", "latest"]
if: contains(github.event.pull_request.labels.*.name, 'ready to review')
steps:
- name: Checkout
Expand Down Expand Up @@ -98,10 +100,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP 7.4
- name: Setup PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
php-version: "8.1"

- name: Cache vendor folder
uses: actions/cache@v1
Expand Down

0 comments on commit aca8389

Please sign in to comment.