Skip to content

Commit

Permalink
Use ramsey/composer-install for CI dependencies installation (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
marmichalski authored Aug 29, 2022
1 parent bf1f0f8 commit 8b14d42
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,10 @@ jobs:
php-version: "${{ matrix.php }}"
ini-values: memory_limit=-1

- name: "Cache Composer dependencies"
uses: actions/cache@v3
- name: "Install dependencies"
uses: ramsey/composer-install@v2
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --ansi"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --ansi"
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run psalm"
run: vendor/bin/psalm
Expand Down

0 comments on commit 8b14d42

Please sign in to comment.