diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6c58887..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 @@ -40,6 +41,7 @@ jobs: - '8.1' - '8.2' - '8.3' + - '8.4' steps: - name: Set up PHP @@ -58,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 @@ -78,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 diff --git a/composer.json b/composer.json index 333be9ac..94ae9c31 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ ], "homepage": "http://moneyphp.org", "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0", + "php": "^8.1", "ext-bcmath": "*", "ext-filter": "*", "ext-json": "*"