Skip to content

Commit becaa23

Browse files
authored
Test with PHP CS Fixer from master branch (#724)
1 parent 285fcd6 commit becaa23

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,28 @@ jobs:
1919
- run: composer analyse
2020

2121
test:
22+
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} ${{ matrix.check-description }}
2223
strategy:
2324
fail-fast: false
2425
matrix:
2526
os: [ macos-latest, ubuntu-latest, windows-latest ]
2627
php-version: [ '7.4', '8.1' ]
28+
install-fixer-from-master-branch: [false]
2729
include:
2830
- os: ubuntu-latest
2931
php-version: '7.2'
3032
composer_flags: '--prefer-lowest'
33+
check-description: 'with lowest dependencies'
3134
- os: ubuntu-latest
3235
php-version: '7.2'
3336
- os: ubuntu-latest
3437
php-version: '7.3'
3538
- os: ubuntu-latest
3639
php-version: '8.0'
40+
- os: ubuntu-latest
41+
php-version: '8.1'
42+
install-fixer-from-master-branch: true
43+
check-description: 'with PHP CS Fixer from master'
3744
runs-on: ${{ matrix.os }}
3845
timeout-minutes: 10
3946
env:
@@ -56,6 +63,8 @@ jobs:
5663
with:
5764
path: ${{ steps.composer-cache.outputs.dir }}
5865
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
66+
- if: matrix.install-fixer-from-master-branch
67+
run: composer require friendsofphp/php-cs-fixer:dev-master --no-update
5968
- run: composer update --no-progress ${{ matrix.composer_flags }}
6069
- run: composer test -- --coverage-clover=./build/logs/clover.xml
6170
- if: steps.coverage-driver.outputs.result != 'none'

0 commit comments

Comments
 (0)