From a0b0e19ddf1df076c641c93a3dcf3adf2eb9f010 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 b686ae77..ae7f11b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,9 @@ jobs: - name: Use dev branches for moneyphp packages run: composer require --dev --no-update moneyphp/crypto-currencies:dev-main moneyphp/iso-currencies:dev-master - - 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 @@ -65,8 +66,10 @@ jobs: - name: Use dev branches for moneyphp packages run: composer require --dev --no-update moneyphp/crypto-currencies:dev-main moneyphp/iso-currencies:dev-master - - 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 @@ -88,8 +91,7 @@ jobs: - name: Use dev branches for moneyphp packages run: composer require --dev --no-update moneyphp/crypto-currencies:dev-main moneyphp/iso-currencies:dev-master - - name: Download dependencies - run: composer install --classmap-authoritative + - uses: "ramsey/composer-install@v3" - name: Psalm run: vendor/bin/psalm