Skip to content

Commit

Permalink
Ensuer "lowest" tests correct versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen authored Apr 30, 2024
1 parent 8750b9e commit d1fa849
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
Expand Down Expand Up @@ -56,15 +55,22 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-file: development

- name: Install dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}

- 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 }}

0 comments on commit d1fa849

Please sign in to comment.