-
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.
Merge pull request #36 from javer/symfony6-php81
Add Symfony 6 and PHP 8.1 support
- Loading branch information
Showing
26 changed files
with
254 additions
and
6,032 deletions.
There are no files selected for viewing
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,3 @@ | ||
/.* export-ignore | ||
/tests export-ignore | ||
/phpunit.xml.dist export-ignore |
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,62 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, edited, reopened] | ||
|
||
jobs: | ||
test: | ||
name: PHP ${{ matrix.php-version }} + Symfony ${{ matrix.symfony-version }} | ||
runs-on: ubuntu-20.04 | ||
continue-on-error: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
symfony-version: | ||
- '4.4.*' | ||
- '5.4.*' | ||
- '6.0.*' | ||
exclude: | ||
- php-version: '7.4' | ||
symfony-version: '6.0.*' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
ini-values: "memory_limit=-1" | ||
php-version: ${{ matrix.php-version }} | ||
tools: composer:v2, flex | ||
|
||
- name: Validate composer.json | ||
run: composer validate --no-check-lock | ||
|
||
- name: Remove unused PHP-CS-Fixer | ||
run: composer remove --dev --no-update friendsofphp/php-cs-fixer | ||
if: matrix.php != '8.0' || matrix.symfony-version != '5.4.*' | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
env: | ||
SYMFONY_REQUIRE: "${{ matrix.symfony-version }}" | ||
|
||
- name: Setup problem matchers for PHP | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: PHP-CS-Fixer | ||
run: vendor/bin/php-cs-fixer fix --dry-run --diff | ||
if: matrix.php == '8.0' && matrix.symfony-version == '5.4.*' | ||
|
||
- name: PHPUnit | ||
run: vendor/bin/phpunit |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/vendor/ | ||
/tests/cache/ | ||
/tests/logs/ | ||
/.php_cs.cache | ||
/.php-cs-fixer.cache | ||
/.phpunit.result.cache | ||
/var/ | ||
/.idea/ | ||
/composer.lock |
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
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
Oops, something went wrong.