mirror of
https://github.com/amphp/parallel.git
synced 2025-01-17 04:38:31 +01:00
Avoid installing php-cs-fixer on legacy versions
This commit is contained in:
parent
db6e3f6fe2
commit
e551086bc4
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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'
|
||||
@ -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:
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user