From 97ffe4169666ca1b014ed3752a0f11e6b081d541 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Mon, 12 Aug 2024 13:30:16 +0200 Subject: [PATCH] Ensure "lowest" tests correct versions (#18) Co-authored-by: Luka Dschaak --- .github/workflows/qa.yaml | 2 ++ .github/workflows/tests.yaml | 12 ++++++++++-- composer.json | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index 40f14b3..68fef99 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -5,6 +5,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + schedule: + - cron: "10 4 * * 2" # Every Tuesday at 4:10 AM UTC permissions: contents: read diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 97e7e71..b880135 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -4,7 +4,8 @@ on: push: branches: [ "main" ] pull_request: - branches: [ "main" ] + schedule: + - cron: "10 4 * * 2" # Every Tuesday at 4:10 AM UTC permissions: contents: read @@ -57,6 +58,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} + ini-file: development - name: Install dependencies uses: ramsey/composer-install@v3 @@ -64,9 +66,15 @@ jobs: dependency-versions: ${{ matrix.dependencies }} composer-options: ${{ matrix.composer-options }} + - name: Validate lowest dependencies + if: matrix.dependencies == 'lowest' + run: | + composer require --dev dereuromark/composer-prefer-lowest --no-interaction + vendor/bin/validate-prefer-lowest + - name: Add Pimcore Admin UI - run: composer require --dev pimcore/admin-ui-classic-bundle --no-interaction if: matrix.dependencies == 'highest' + run: composer require --dev pimcore/admin-ui-classic-bundle --no-interaction - name: Execute tests run: composer tests -- ${{ matrix.phpunit-flags }} diff --git a/composer.json b/composer.json index 2b1c006..cfabe98 100644 --- a/composer.json +++ b/composer.json @@ -20,10 +20,10 @@ ], "require": { "php": "~8.1.0 || ~8.2.0", - "doctrine/persistence": "^2.1 || ^3.0", + "doctrine/persistence": "^2.2 || ^3.0", "phpunit/phpunit": "^9.6.0", "pimcore/pimcore": "^10.5 || ~11.0.0 || ~11.1.0 || ~11.2.2", - "psr/log": "^1.0 || ^2.0 || ^3.0", + "psr/log": "^1.1.3 || ^2.0 || ^3.0", "symfony/config": "^5.4 || ^6.4", "symfony/console": "^5.4 || ^6.4", "symfony/dependency-injection": "^5.4 || ^6.4",