@@ -17,37 +17,52 @@ jobs:
1717 - uses : shivammathur/setup-php@v2
1818 with :
1919 php-version : ' 8.1'
20+ - run : composer require friendsofphp/php-cs-fixer --no-update
2021 - run : composer update --no-progress
2122 - run : composer analyse
2223
2324 test :
24- name : PHP ${{ matrix.php-version }} ${{ matrix.description }}
25+ name : PHP ${{ matrix.php-version }} with ${{ matrix.with-package }} ${{ matrix.description }}
2526 strategy :
2627 fail-fast : false
2728 matrix :
2829 include :
2930 - description : ' with lowest dependencies'
3031 os : ubuntu-latest
3132 php-version : ' 7.4'
33+ with-package : friendsofphp/php-cs-fixer:*
34+ composer-flags : ' --prefer-lowest'
35+ - description : ' with lowest dependencies'
36+ os : ubuntu-latest
37+ php-version : ' 7.4'
38+ with-package : php-cs-fixer/shim:*
3239 composer-flags : ' --prefer-lowest'
3340 - os : ubuntu-latest
3441 php-version : ' 8.0'
42+ with-package : friendsofphp/php-cs-fixer:*
3543 - os : ubuntu-latest
3644 php-version : ' 8.1'
45+ with-package : friendsofphp/php-cs-fixer:*
3746 coverage-driver : pcov
3847 description : ' with calculating code coverage'
3948 - os : ubuntu-latest
4049 php-version : ' 8.1'
41- install-fixer-from-master-branch : true
50+ with-package : friendsofphp/php-cs-fixer:dev-master
4251 description : ' with PHP CS Fixer from master'
52+ - os : ubuntu-latest
53+ php-version : ' 8.1'
54+ with-package : php-cs-fixer/shim:*
4355 - description : on macOS
4456 os : macos-latest
4557 php-version : ' 8.1'
58+ with-package : friendsofphp/php-cs-fixer:*
4659 - description : on Windows
4760 os : windows-latest
4861 php-version : ' 8.1'
62+ with-package : friendsofphp/php-cs-fixer:*
4963 - os : ubuntu-latest
5064 php-version : ' 8.2'
65+ with-package : friendsofphp/php-cs-fixer:*
5166 composer-flags : ' --ignore-platform-reqs'
5267 runs-on : ${{ matrix.os }}
5368 timeout-minutes : 10
6681 with :
6782 path : ${{ steps.composer-cache.outputs.dir }}
6883 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
69- - if : matrix.install-fixer-from-master-branch
70- run : composer require friendsofphp/php-cs-fixer:dev-master --no-update
84+ - run : composer require ${{ matrix.with-package }} --no-update
7185 - run : composer update --no-progress ${{ matrix.composer-flags }}
7286 - run : composer test -- --coverage-clover=./build/logs/clover.xml
7387 - if : matrix.coverage-driver == 'pcov'
0 commit comments