From 3f436135ffc38fa9449a354b64ed29a65c3c5d82 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 12 Sep 2024 08:50:23 +0200 Subject: [PATCH] Use ramsey/composer-install --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31a52ae1..d2789ef1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,9 @@ jobs: - name: Set up locales run: ./hack/setup-locales.sh - - name: Download dependencies - run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress --no-suggest --prefer-lowest --classmap-authoritative + - uses: "ramsey/composer-install@v3" + with: + dependency-versions: "lowest" - name: Run tests run: composer test @@ -59,8 +60,10 @@ jobs: - name: Set up locales run: ./hack/setup-locales.sh - - name: Download dependencies - run: composer install --classmap-authoritative + - uses: "ramsey/composer-install@v3" + with: + # We need to ignore PHP because Psalm blocks installing it + composer-options: "--ignore-platform-req=php" - name: Run tests run: composer test @@ -79,8 +82,7 @@ jobs: php-version: '8.1' extensions: bcmath, gmp, intl, dom, mbstring - - name: Download dependencies - run: composer install --classmap-authoritative + - uses: "ramsey/composer-install@v3" - name: Psalm run: vendor/bin/psalm