Skip to content

Commit

Permalink
Avoid installing php-cs-fixer on legacy versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Dec 8, 2024
1 parent db6e3f6 commit e551086
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ jobs:
include:
- operating-system: 'ubuntu-latest'
php-version: '7.1'
style-fix: 'none'

- operating-system: 'ubuntu-latest'
php-version: '7.2'
style-fix: 'none'

- operating-system: 'ubuntu-latest'
php-version: '7.3'
style-fix: 'none'

- operating-system: 'ubuntu-latest'
php-version: '7.4'
Expand Down Expand Up @@ -67,6 +70,10 @@ jobs:
composer-${{ runner.os }}-
composer-
- name: Remove php-cs-fixer if not needed
run: composer remove --dev --no-update amphp/php-cs-fixer-config
if: matrix.style-fix == 'none'

- name: Install dependencies
uses: nick-invision/retry@v2
with:
Expand All @@ -82,5 +89,6 @@ jobs:

- name: Run style fixer
run: vendor/bin/php-cs-fixer --diff --dry-run -v fix
if: matrix.style-fix != 'none'
env:
PHP_CS_FIXER_IGNORE_ENV: 1

0 comments on commit e551086

Please sign in to comment.