diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0084dcceea..eaa8d6ec46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 \ No newline at end of file + run: vendor/bin/phpunit --configuration tests/config/${{ matrix.db }}.phpunit.xml tests/Oro/Tests/Connection/TearDownTest.php diff --git a/composer.json b/composer.json index f169559891..2d07d67d05 100644 --- a/composer.json +++ b/composer.json @@ -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",