-
-
Notifications
You must be signed in to change notification settings - Fork 97
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 #824 from doctrine/symfony-6-branch-1.x
Symfony 6
- Loading branch information
Showing
25 changed files
with
318 additions
and
116 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,179 @@ | ||
name: Test application | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
phpunit-doctrine_dbal: | ||
name: 'PHP ${{ matrix.php-version }} Doctrine DBAL ${{ matrix.dependencies }} Symfony ${{ matrix.symfony-version }}' | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
MYSQL_DATABASE: phpcr_odm_tests | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
php-version: | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
dependencies: [highest] | ||
symfony-version: ['*'] | ||
include: | ||
- php-version: '7.1' | ||
dependencies: lowest | ||
symfony-version: '*' | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-version: 2.3.* | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-version: 3.4.* | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-version: 4.4.* | ||
php-bench: true | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-version: 5.0.* | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-version: 6.0.* | ||
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install and configure PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: 'composer:v2, flex' | ||
|
||
- name: Symfony version | ||
if: matrix.symfony-version != '*' | ||
run: composer config extra.symfony.require ${{ matrix.symfony-version }} | ||
|
||
- name: Install Jackalope Doctrine DBAL transport | ||
run: composer require jackalope/jackalope-doctrine-dbal:"~1.0" --no-update | ||
|
||
- name: Install PHPBench | ||
if: matrix.php-bench == true | ||
run: composer require phpbench/phpbench:"~0.16" --no-update | ||
|
||
- name: Install dependencies with Composer | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: ${{ matrix.dependencies }} | ||
composer-options: --prefer-dist | ||
|
||
- name: Run configuration script | ||
run: ./tests/script_doctrine_dbal.sh | ||
|
||
- name: Execute test cases | ||
run: vendor/bin/phpunit -c tests/phpunit_doctrine_dbal.xml.dist | ||
|
||
- name: Execute PHPBench | ||
if: matrix.php-bench == true | ||
run: vendor/bin/phpbench run --report=all | ||
env: | ||
TRANSPORT: doctrine_dbal | ||
|
||
phpunit-jackrabbit: | ||
name: 'PHP ${{ matrix.php-version }} Jackrabbit ${{ matrix.dependencies }} Symfony ${{ matrix.symfony-version }}' | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
php-version: | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
dependencies: [highest] | ||
symfony-version: ['*'] | ||
include: | ||
- php-version: '7.1' | ||
dependencies: lowest | ||
symfony-version: '*' | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-version: 2.3.* | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-version: 3.4.* | ||
php-bench: true | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-version: 4.4.* | ||
php-bench: true | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-version: 5.0.* | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-version: 6.0.* | ||
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install and configure PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: 'composer:v2, flex' | ||
|
||
- name: Symfony version | ||
if: matrix.symfony-version != '*' | ||
run: composer config extra.symfony.require ${{ matrix.symfony-version }} | ||
|
||
- name: Install and configure Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: temurin | ||
java-version: '8' | ||
|
||
- name: Install Jackalope Jackrabbit | ||
run: composer require jackalope/jackalope-jackrabbit:~1.0 --no-update | ||
|
||
- name: Install PHPBench | ||
if: matrix.php-bench == true | ||
run: composer require phpbench/phpbench:"~0.16" --no-update | ||
|
||
- name: Install dependencies with Composer | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: ${{ matrix.dependencies }} | ||
composer-options: --prefer-dist | ||
|
||
- name: Run configuration script | ||
run: ./tests/script_jackrabbit.sh | ||
|
||
- name: Execute test cases | ||
run: vendor/bin/phpunit -c tests/phpunit_jackrabbit.xml.dist | ||
|
||
- name: Execute PHPBench | ||
if: matrix.php-bench == true | ||
run: vendor/bin/phpbench run --report=all | ||
env: | ||
TRANSPORT: jackrabbit |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
Changelog | ||
========= | ||
|
||
1.6.0 | ||
----- | ||
|
||
* Support Symfony 6 | ||
* Drop support for Symfony 2.3 | ||
|
||
1.5.4 | ||
----- | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ final class Children | |
public $filter; | ||
|
||
/** | ||
*@var int | ||
* @var int | ||
*/ | ||
public $fetchDepth = -1; | ||
|
||
|
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.