Skip to content

Commit

Permalink
Use ramsey/composer-install
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk committed Sep 12, 2024
1 parent 2cbebe2 commit daaac58
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -65,8 +66,11 @@ 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
# Psalm blocks installation on PHP 8.4, remove it, as we just want to run tests.
- name: Remove psalm dependency
run: composer remove --dev vimeo/psalm

- uses: "ramsey/composer-install@v3"

- name: Run tests
run: composer test
Expand All @@ -88,8 +92,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
Expand Down

0 comments on commit daaac58

Please sign in to comment.