-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Symfony 6 #821
Closed
+316
−114
Closed
Allow Symfony 6 #821
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7d33e0d
Allow Symfony 6
jordisala1991 65e36ab
Add workflow
jordisala1991 a5a4edf
Add mysql service
jordisala1991 0a08498
Update .github/workflows/test-application.yaml
dbu 5495279
Add transport to all builds
jordisala1991 8c6d4df
Try to fix
jordisala1991 77e4da9
fix host for database
jordisala1991 301721e
Split jackrabbit and doctrine dbal
jordisala1991 aa4e72f
Fix
jordisala1991 8827ab2
try again
jordisala1991 341d6ae
fix
jordisala1991 f726adc
try to fix broken tests
jordisala1991 2a3c737
fix risky tests
jordisala1991 a59f0e3
more fixes
jordisala1991 58d9f9b
fix tests
jordisala1991 e19e93e
fix deprecations
jordisala1991 243f883
fix again
jordisala1991 11c2704
fix deprecations
jordisala1991 32dc4f5
Fix tests
jordisala1991 c6e5801
fix
jordisala1991 bba81c6
fix lowest build
jordisala1991 b11cc01
Add phpbench
jordisala1991 9efbd80
phpbench requires php 7.*
jordisala1991 cfaf347
Allow phpunit 7
jordisala1991 d479b68
try to fix jackrabbit
jordisala1991 533de88
Up phpunit min version
jordisala1991 a57eaf3
Add transport to phpbench
jordisala1991 24f2037
Add setup java
jordisala1991 3b249bc
try with latest stable of jackrabbit
jordisala1991 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,199 @@ | ||
name: Test application | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
phpunit-doctrine_dbal: | ||
name: 'PHP ${{ matrix.php-version }} Doctrine DBAL ${{ matrix.dependencies }} ${{ matrix.symfony-require }}' | ||
|
||
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 | ||
|
||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony-require }} | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
php-version: | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
dependencies: [highest] | ||
symfony-require: [''] | ||
include: | ||
- php-version: '7.1' | ||
dependencies: lowest | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-require: 2.3.* | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-require: 3.4.* | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-require: 4.4.* | ||
php-bench: true | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-require: 5.0.* | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-require: 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' | ||
|
||
- name: Globally install symfony/flex | ||
if: matrix.symfony-require != '' | ||
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex | ||
|
||
- name: Allow unstable dependencies | ||
if: matrix.symfony-require == '6.0.*' | ||
run: composer config minimum-stability dev | ||
|
||
- name: Remove dev dependencies not compatible with Symfony 6 | ||
if: matrix.symfony-require == '6.0.*' | ||
run: composer remove liip/rmt --dev --no-update --no-interaction | ||
|
||
- 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 }} ${{ matrix.symfony-require }}' | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony-require }} | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
php-version: | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
dependencies: [highest] | ||
symfony-require: [''] | ||
include: | ||
- php-version: '7.1' | ||
dependencies: lowest | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-require: 2.3.* | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-require: 3.4.* | ||
php-bench: true | ||
- php-version: '7.4' | ||
dependencies: highest | ||
symfony-require: 4.4.* | ||
php-bench: true | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-require: 5.0.* | ||
- php-version: '8.0' | ||
dependencies: highest | ||
symfony-require: 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' | ||
|
||
- name: Install and configure Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: temurin | ||
java-version: '8' | ||
|
||
- name: Globally install symfony/flex | ||
if: matrix.symfony-require != '' | ||
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex | ||
|
||
- name: Allow unstable dependencies | ||
if: matrix.symfony-require == '6.0.*' | ||
run: composer config minimum-stability dev | ||
|
||
- name: Remove dev dependencies not compatible with Symfony 6 | ||
if: matrix.symfony-require == '6.0.*' | ||
run: composer remove liip/rmt --dev --no-update --no-interaction | ||
|
||
- 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
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is deprecated on php > 7.2 I think (or 7.3/7.4)