-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18b139f
commit b4d5c14
Showing
2 changed files
with
44 additions
and
89 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
on: push | ||
|
||
jobs: | ||
test: | ||
name: "php${{ matrix.php }} symfony${{ matrix.symfony }} ${{matrix.minimumStability}} ${{ matrix.composerOptions }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: | ||
- '8.1' | ||
- '8.2' | ||
- '8.3' | ||
symfony: | ||
- '5.4' | ||
- '6.4' | ||
- '7.0' | ||
minimumStability: | ||
- 'stable' | ||
composerOptions: | ||
- '--prefer-stable --prefer-lowest' | ||
- '--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 |