Skip to content

Commit

Permalink
ci: run --prefer-lowest run only for lowest supported PHP version (#266)
Browse files Browse the repository at this point in the history
* 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 <christopher.georg@sr-travel.de>
  • Loading branch information
Chris53897 and Chris8934 committed Mar 8, 2024
1 parent 4c0c864 commit 5636430
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/phpunit.yml
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"

0 comments on commit 5636430

Please sign in to comment.