-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump dependencies. Test against Symfony 7
- Loading branch information
Showing
18 changed files
with
275 additions
and
85 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 |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
vendor/bin/simple-phpunit install | ||
echo "::endgroup::" | ||
env: | ||
SYMFONY_REQUIRE: "6.2*dev" | ||
SYMFONY_REQUIRE: "6.4*dev" | ||
|
||
- name: 'Lint - PHP CS Fixer' | ||
if: always() && steps.deps.outcome == 'success' | ||
|
@@ -94,60 +94,53 @@ jobs: | |
mysql: true | ||
allow-unstable: true | ||
|
||
- name: 'Test Symfony 6.0 [Linux, PHP 8.1]' | ||
- name: 'Test Symfony 6.3 [Linux, PHP 8.1]' | ||
os: 'ubuntu-latest' | ||
php: '8.1' | ||
symfony: '6.0.*@dev' | ||
symfony: '6.3.*@dev' | ||
mongodb: true | ||
mysql: true | ||
allow-unstable: true | ||
|
||
- name: 'Test Symfony 6.1 [Linux, PHP 8.1]' | ||
- name: 'Test Symfony 6.4 [Linux, PHP 8.1]' | ||
os: 'ubuntu-latest' | ||
php: '8.1' | ||
symfony: '6.1.*@dev' | ||
symfony: '6.4.*@dev' | ||
allow-unstable: true | ||
mysql: true | ||
mongodb: true | ||
|
||
- name: 'Test Symfony 6.2 [Linux, PHP 8.1]' | ||
- name: 'Test Symfony 7.0 [Linux, PHP 8.2]' | ||
os: 'ubuntu-latest' | ||
php: '8.1' | ||
symfony: '6.2.*@dev' | ||
php: '8.2' | ||
symfony: '7.0.*@dev' | ||
allow-unstable: true | ||
mysql: true | ||
mongodb: true | ||
mongodbnew: true | ||
|
||
# Bleeding edge (unreleased dev versions where failures are allowed) | ||
- name: 'Test next Symfony [Linux, PHP 8.1] (allowed failure)' | ||
os: 'ubuntu-latest' | ||
php: '8.1' | ||
symfony: '6.3.*@dev' | ||
composer-flags: '--ignore-platform-req php' | ||
allow-unstable: true | ||
allow-failure: true | ||
mysql: true | ||
mongodb: true | ||
|
||
- name: 'Test next Symfony [Linux, PHP 8.2] (allowed failure)' | ||
- name: 'Test next Symfony 7.1 [Linux, PHP 8.2] (allowed failure)' | ||
os: 'ubuntu-latest' | ||
php: '8.2' | ||
symfony: '6.3.*@dev' | ||
symfony: '7.1.*@dev' | ||
composer-flags: '--ignore-platform-req php' | ||
allow-unstable: true | ||
allow-failure: true | ||
mysql: true | ||
mongodb: true | ||
mongodbnew: true | ||
|
||
- name: 'Test next Symfony [Linux, PHP 8.3] (allowed failure)' | ||
- name: 'Test next Symfony 7.1 [Linux, PHP 8.3] (allowed failure)' | ||
os: 'ubuntu-latest' | ||
php: '8.3' | ||
symfony: '6.3.*@dev' | ||
symfony: '7.1.*@dev' | ||
composer-flags: '--ignore-platform-req php' | ||
allow-unstable: true | ||
allow-failure: true | ||
mysql: true | ||
mongodb: true | ||
mongodbnew: true | ||
|
||
steps: | ||
- name: 'Set git to use LF' | ||
|
@@ -167,19 +160,13 @@ jobs: | |
tools: 'composer:v2,flex' | ||
|
||
- name: 'Start MongoDB (Linux)' | ||
uses: supercharge/mongodb-github-action@1.8.0 | ||
uses: supercharge/mongodb-github-action@1.10.0 | ||
if: ${{ matrix.mongodb && matrix.os == 'ubuntu-latest' }} | ||
|
||
- name: 'Remove MongoDB (Windows)' | ||
uses: crazy-max/ghaction-chocolatey@v2 | ||
with: | ||
args: uninstall mongodb mongodb.install -y --all-versions | ||
if: ${{ matrix.mongodb && matrix.os == 'windows-latest' }} | ||
|
||
- name: 'Start MongoDB (Windows)' | ||
uses: crazy-max/ghaction-chocolatey@v2 | ||
uses: crazy-max/ghaction-chocolatey@v3 | ||
with: | ||
args: install mongodb.install --version=5.0.14 --allow-downgrade | ||
args: install mongodb.install --version=7.0.4 --allow-downgrade | ||
if: ${{ matrix.mongodb && matrix.os == 'windows-latest' }} | ||
|
||
- name: 'Shutdown Default Ubuntu MySQL' | ||
|
@@ -189,7 +176,7 @@ jobs: | |
- name: 'Setup MySQL' | ||
uses: ankane/setup-mysql@v1 | ||
with: | ||
mysql-version: '8.0' | ||
mysql-version: '8.0.35' | ||
database: doctrine_tests | ||
if: ${{ matrix.mysql }} | ||
|
||
|
@@ -210,9 +197,13 @@ jobs: | |
run: composer config minimum-stability dev | ||
if: ${{ matrix.allow-unstable }} | ||
|
||
- name: 'Require Doctrine MongoDB dependencies' | ||
- name: 'Require Doctrine MongoDB dependencies for old symfony' | ||
run: composer require --no-update ${{ matrix.composer-flags }} --dev --no-interaction --ansi "doctrine/mongodb-odm:^2.4" "doctrine/mongodb-odm-bundle:^4.5.1" | ||
if: ${{ matrix.mongodb }} | ||
if: ${{ matrix.mongodb && !matrix.mongodbnew }} | ||
|
||
- name: 'Require Doctrine MongoDB dependencies for new symfony' | ||
run: composer require --no-update ${{ matrix.composer-flags }} --dev --no-interaction --ansi "doctrine/mongodb-odm:^2.6" "doctrine/mongodb-odm-bundle:5.0.x-dev" | ||
if: ${{ matrix.mongodb && matrix.mongodbnew }} | ||
|
||
- name: 'Install dependencies' | ||
run: | | ||
|
@@ -227,11 +218,11 @@ jobs: | |
SYMFONY_REQUIRE: "${{ matrix.symfony }}" | ||
|
||
- name: 'Set Doctrine MySQL DSN (Linux)' | ||
run: echo "DOCTRINE_DBAL_URL=pdo-mysql://[email protected]:3306/doctrine_tests?serverVersion=8.0" >> $GITHUB_ENV | ||
run: echo "DOCTRINE_DBAL_URL=pdo-mysql://[email protected]:3306/doctrine_tests?serverVersion=8.0.35" >> $GITHUB_ENV | ||
if: ${{ matrix.mysql && matrix.os == 'ubuntu-latest' }} | ||
|
||
- name: 'Set Doctrine MySQL DSN (Windows)' | ||
run: echo "DOCTRINE_DBAL_URL=pdo-mysql://[email protected]:3306/doctrine_tests?serverVersion=8.0" >> $env:GITHUB_ENV | ||
run: echo "DOCTRINE_DBAL_URL=pdo-mysql://[email protected]:3306/doctrine_tests?serverVersion=8.0.35" >> $env:GITHUB_ENV | ||
if: ${{ matrix.mysql && matrix.os == 'windows-latest' }} | ||
|
||
- name: 'Run PHPUnit tests' | ||
|
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
3 changes: 3 additions & 0 deletions
3
tests/Fixtures/Integration/Symfony/config/config-routing-annotation.yaml
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 @@ | ||
framework: | ||
router: | ||
resource: '%kernel.project_dir%/config/routing-annotation.yaml' |
5 changes: 5 additions & 0 deletions
5
tests/Fixtures/Integration/Symfony/config/config-routing-attribute.yaml
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,5 @@ | ||
framework: | ||
annotations: | ||
enabled: false | ||
router: | ||
resource: '%kernel.project_dir%/config/routing.yaml' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doctrine: | ||
orm: | ||
report_fields_where_declared: true | ||
enable_lazy_ghost_objects: true |
Empty file.
3 changes: 3 additions & 0 deletions
3
tests/Fixtures/Integration/Symfony/config/routing-annotation.yaml
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 @@ | ||
controllers: | ||
resource: ../src/ControllerAnnotation/ | ||
type: annotation |
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,3 +1,3 @@ | ||
controllers: | ||
resource: ../src/Controller/ | ||
type: annotation | ||
type: attribute |
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.