From 563643012066a63eb91b70d15de3f84972038989 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 8 Mar 2024 12:56:16 +0100 Subject: [PATCH] ci: run --prefer-lowest run only for lowest supported PHP version (#266) * ci: run --prefer-lowest run only for lowest supported PHP version * ci: run --prefer-lowest run only for lowest supported PHP version --------- Co-authored-by: Christopher Georg --- .github/workflows/phpunit.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index a9f5686..a306550 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" @@ -42,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"