Skip to content

Commit

Permalink
Test prefer lowest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 5, 2024
1 parent c47cbae commit e2775aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1]
php: [8.1, 8.2, 8.3]
db_image_name: [mysql, percona, postgres]
composer-flags: ['', '--prefer-lowest']
include:
- db_image_name: mysql
db_image_version: 8
Expand Down Expand Up @@ -51,7 +52,7 @@ jobs:
- name: Install dependencies
run: |
composer self-update
composer install --prefer-dist --optimize-autoloader --no-interaction --no-suggest
composer update --prefer-dist --optimize-autoloader --no-interaction --no-suggest ${{ matrix.composer-flags }}
- name: Run setup tests
run: vendor/bin/phpunit --configuration tests/config/${{ matrix.db }}.phpunit.xml tests/Oro/Tests/Connection/SetupTest.php
Expand All @@ -61,6 +62,7 @@ jobs:

- name: Check code style
run: vendor/bin/phpcs src/ tests/ -p --encoding=utf-8 --extensions=php --standard=psr2
if: ${{ matrix.composer-flags != '--prefer-lowest' }}

- name: Tear down tests
run: vendor/bin/phpunit --configuration tests/config/${{ matrix.db }}.phpunit.xml tests/Oro/Tests/Connection/TearDownTest.php
run: vendor/bin/phpunit --configuration tests/config/${{ matrix.db }}.phpunit.xml tests/Oro/Tests/Connection/TearDownTest.php
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"require-dev": {
"phpunit/phpunit": "~10",
"doctrine/data-fixtures": "^1.3",
"doctrine/data-fixtures": "^1.6",
"symfony/yaml": "5.*",
"symfony/cache": "5.*",
"squizlabs/php_codesniffer": "^3.5",
Expand Down

0 comments on commit e2775aa

Please sign in to comment.