-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): Change compatibility to SF ^6.0 and php ^8.0
* fix(deps): Add compat for PHP ^8.0 and SF ^6.0 [add-sf-6-support] BREAKING CHANGE: no more support for php < 8 or SF < 6 * test(ci): Migrate from travis to github action * test(ci): Trigger build only on pull requests * test(ci): Run only in 7.4 * test(ci): Run phpstan on root folder * test(ci): Reduce number of dependencies and fixe php version for all tools * test(ci): Remove > from run in ci.yaml * test(ci): try lower version of php tools * test(ci): try revert composer install with shivammathur/setup-php * test(ci): try revert phpstan install with shivammathur/setup-php * test(ci): Fix coverall path * doc(ci): Remove travis build badge * doc(ci): Update reco * test(ci): Remove unrecognized src_dir config from .coveralls.yml * test(ci): Switch to official php-coveralls/php-coveralls package and follow GA doc * test(ci): Run on prefer lowest and "normal" * test(ci): Run composer update instead of install * test(ci): change target php versions * fix(ci): Normalizer signature * chore(ci): Prevent symfony/serializer:6.0.0 See: symfony/symfony#44331 * chore(ci): Bump phpunit to >=9 Phpunit < 9 is bubby on php 8.1: "PHP Fatal error: Cannot acquire reference to $GLOBALS" * chore(ci): Bump phpunit to >=9 Phpunit < 9 is bubby on php 8.1: "PHP Fatal error: Cannot acquire reference to $GLOBALS" * test(ci): Remove coverage publish * test(ci): Remove coverage publish * chore(ci): Remove php-coveralls/php-coveralls since the support of PHP 8.1 is not ready Co-authored-by: Cyril Labbe <4123392+ryden54@users.noreply.github.com> Co-authored-by: Arnaud LAHAXE <arnaud.lahaxe@boursorama.fr>
- Loading branch information
1 parent
648bb44
commit 34145b1
Showing
22 changed files
with
3,349 additions
and
1,914 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,39 @@ | ||
name: CI | ||
|
||
on: [ "pull_request" ] | ||
|
||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
php-versions: [ '8.0', '8.1' ] | ||
composer-options: [ '--prefer-lowest', ''] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: pcov | ||
env: | ||
fail-fast: true | ||
- name: "Remove composer.lock file" | ||
run: rm composer.lock || true | ||
- uses: php-actions/composer@v6 | ||
with: | ||
command: update # use update to use --prefer-lowest parameter | ||
php_version: ${{ matrix.php-versions }} | ||
version: 2 | ||
dev: yes | ||
args: --no-interaction --no-progress --prefer-dist ${{ matrix.composer-options }} | ||
- name: "Run php -l on all bundle files" | ||
run: find . -not -path "./vendor/*" -type f -name '*.php' -exec php -l {} \; | ||
- uses: php-actions/phpstan@v3 | ||
with: | ||
path: . | ||
memory_limit: 1G | ||
level: 0 | ||
php_version: ${{ matrix.php-versions }} | ||
- name: "Run phpunit" | ||
run: "XDEBUG_MODE=coverage php ./vendor/bin/phpunit --coverage-text" |
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
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 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 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.