Skip to content

Commit 4e7bb92

Browse files
authored
Merge pull request #231 from Progi1984/ci
CI : PHPCSFixer with common action
2 parents 4575339 + 07cbf1e commit 4e7bb92

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

.github/workflows/php.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,11 @@ jobs:
3232
name: PHP-CS-Fixer
3333
runs-on: ubuntu-latest
3434
steps:
35-
- name: Setup PHP
36-
uses: shivammathur/setup-php@v2
35+
- name: Run PHP-CS-Fixer
36+
uses: PrestaShop/.github/.github/actions/php-ci/php-cs@master
3737
with:
3838
php-version: '7.4'
3939

40-
- name: Checkout
41-
uses: actions/checkout@v4
42-
43-
- name: Cache dependencies
44-
uses: actions/cache@v4
45-
with:
46-
path: vendor
47-
key: php-${{ hashFiles('composer.lock') }}
48-
49-
- name: Install dependencies
50-
run: composer install
51-
52-
- name: Run PHP-CS-Fixer
53-
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no
54-
5540
# Run PHPStan against the module (PHP 7.4 – PS 8.2)
5641
phpstan-74-81:
5742
name: PHPStan (PHP 7.4 - 8.1)

0 commit comments

Comments
 (0)