Skip to content

Commit

Permalink
Ensure "lowest" tests correct versions (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Luka Dschaak <[email protected]>
  • Loading branch information
jdreesen and lukadschaak authored Aug 12, 2024
1 parent 08f19b4 commit 97ffe41
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,16 +58,23 @@ 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 }}
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 }}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 97ffe41

Please sign in to comment.