From 5fd44c4a7fcedeb3b7caa160536746f6ed9ce236 Mon Sep 17 00:00:00 2001 From: mscherer Date: Sat, 16 Nov 2024 20:03:48 +0100 Subject: [PATCH] Sync CI script --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42bf468..baf82b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,10 +58,10 @@ jobs: if ${{ matrix.prefer-lowest == 'prefer-lowest' }} then composer update --prefer-lowest --prefer-stable + composer require --dev dereuromark/composer-prefer-lowest:dev-master else composer install --no-progress --prefer-dist --optimize-autoloader fi - if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then composer require --dev dereuromark/composer-prefer-lowest:dev-master; fi - name: Run PHPUnit run: | if [[ ${{ matrix.db-type }} == 'sqlite' ]]; then export DB_URL='sqlite:///:memory:'; fi @@ -73,7 +73,8 @@ jobs: vendor/bin/phpunit fi - name: Validate prefer-lowest - run: if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then vendor/bin/validate-prefer-lowest -m; fi + if: matrix.prefer-lowest == 'prefer-lowest + run: vendor/bin/validate-prefer-lowest -m - name: Upload coverage reports to Codecov if: success() && matrix.php-version == '8.1'