From d96491f4595ff7b26755f9c5c4e4807437df4228 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Fri, 8 Mar 2024 12:21:36 +0100 Subject: [PATCH 1/2] ci: run --prefer-lowest run only for lowest supported PHP version --- .github/workflows/phpunit.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index a9f5686..58ce1b7 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -10,12 +10,11 @@ jobs: phpunit: name: "PHPUnit tests" - runs-on: ${{ matrix.operating-system }} + runs-on: "ubuntu-latest" strategy: matrix: dependencies: - - "lowest" - "highest" php-version: - "7.2" @@ -25,8 +24,10 @@ jobs: - "8.1" - "8.2" - "8.3" - operating-system: - - "ubuntu-latest" + + include: + - php-version: '7.2' + dependencies: "lowest" steps: - name: "Checkout" From 1b9d4bcd07340ca0569762dd3362ea06a1b761d8 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Fri, 8 Mar 2024 12:24:05 +0100 Subject: [PATCH 2/2] ci: run --prefer-lowest run only for lowest supported PHP version --- .github/workflows/phpunit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 58ce1b7..a306550 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -43,11 +43,11 @@ jobs: - name: "Install lowest dependencies" if: ${{ matrix.dependencies == 'lowest' }} - run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest" + run: "composer update --prefer-lowest --no-interaction --no-progress" - name: "Install highest dependencies" if: ${{ matrix.dependencies == 'highest' }} - run: "composer update --no-interaction --no-progress --no-suggest" + run: "composer update --no-interaction --no-progress" - name: "Tests" run: "vendor/bin/phpunit"