Skip to content

chore(deps-dev): update friendsofphp/php-cs-fixer requirement #108

chore(deps-dev): update friendsofphp/php-cs-fixer requirement

chore(deps-dev): update friendsofphp/php-cs-fixer requirement #108

Workflow file for this run

---
on: push
jobs:
test:
name: "php${{ matrix.php }} symfony${{ matrix.symfony }} ${{matrix.minimumStability}} ${{ matrix.composerOptions }}"
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.2'
- '8.3'
symfony:
- '5.4'
- '6.4'
- '7.0'
- '7.1'
minimumStability:
- 'stable'
composerOptions:
- '--prefer-stable --prefer-lowest'
- '--prefer-stable'
include:
- symfony: '5.4'
php: '8.1'
minimumStability: 'stable'
composerOptions: '--prefer-stable --prefer-lowest'
- symfony: '5.4'
php: '8.1'
minimumStability: 'stable'
composerOptions: '--prefer-stable'
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: intl
tools: composer
- uses: actions/checkout@v4
- run: |
curl -s https://raw.githubusercontent.com/symfony/symfony/${{ matrix.symfony }}/composer.json | jq '.replace | to_entries | map({key: .key, value: ("< " + "${{ matrix.symfony }}" + ".0 || >= " + ("${{ matrix.symfony }}" | (((.|tonumber + 0.1) * 10)|round / 10)|tostring) + ".0")}) | from_entries' > conflict.json
jq -s '.[0] + {conflict: .[1]}' composer.json conflict.json > composer.new.json
mv composer.new.json composer.json
rm conflict.json
cat composer.json
- run: |
jq -s '.[0] + {"minimum-stability": "${{ matrix.minimumStability }}"}' composer.json > composer.new.json
mv composer.new.json composer.json
cat composer.json
- run: composer update ${{ matrix.composerOptions }}
- run: vendor/bin/phpstan analyse --no-progress --memory-limit=-1
- run: vendor/bin/phpspec run -v --config=phpspec.no-coverage.yml
- run: bin/lint-twig src/
- run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --diff --dry-run -vvv