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'