Skip to content

Commit

Permalink
⬆️ allow Symfony 6
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Oct 30, 2021
1 parent d7068d1 commit 3761dfb
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 33 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/.git* export-ignore
/.php-cs-fixer.* export-ignore
/.travis.yml export-ignore
/CHANGELOG.md export-ignore
/docs/ export-ignore
/phpunit.xml.dist export-ignore
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build

on:
pull_request: ~
push: ~

jobs:
phpstan:
runs-on: ubuntu-20.04
name: PHPStan
steps:
- name: Checkout
uses: actions/checkout@v2
- name: PHPStan
uses: docker://oskarstark/phpstan-ga
env:
REQUIRE_DEV: true
with:
args: analyse
cs-fixer:
runs-on: ubuntu-20.04
name: PHP-CS-Fixer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fix CS
uses: docker://oskarstark/php-cs-fixer-ga
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- '7.3'
- '7.4'
- '8.0'
include:
- description: 'Symfony 4.4'
php: '7.3'
composer_option: '--prefer-lowest'
- description: 'Symfony 5.3'
php: '7.4'
symfony: 5.3.*
- description: 'Symfony 6.0'
php: '8.0'
symfony: 6.0.*-dev
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.composer_option }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
if: contains(matrix.symfony, '-dev')
- run: composer config minimum-stability dev
- run: composer config prefer-stable true
if: matrix.symfony
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: vendor/bin/phpunit

30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
],
"require": {
"php": "^7.3 || ^8.0",
"symfony/form": "^4.4 || ^5.0"
"symfony/form": "^4.4 || ^5.0 || ^6.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"simple-bus/message-bus": "^3.1 || ^6.0",
"symfony/messenger": "^4.4 || ^5.0"
"symfony/messenger": "^4.4 || ^5.0 || ^6.0"
},
"extra": {
"branch-alias": {
Expand Down

0 comments on commit 3761dfb

Please sign in to comment.