Skip to content

Commit

Permalink
Use ramsey/composer-install v2 in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException committed Oct 17, 2023
1 parent 7265e30 commit 9f32b3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
extensions: "intl, xdebug"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"
with:
composer-options: "--prefer-dist --no-progress --no-suggest"

- name: "Code Sniffer"
run: vendor/bin/phpcs
run: "vendor/bin/phpcs"
11 changes: 6 additions & 5 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
php-version: "8.1"
extensions: "intl, xdebug"

- name: "Install dependencies"
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
composer-options: "--prefer-dist --no-progress --no-suggest"

- name: "PHPStan"
run: vendor/bin/phpstan analyse
run: "vendor/bin/phpstan analyse"

- name: "Psalm"
run: vendor/bin/psalm
run: "vendor/bin/psalm"

0 comments on commit 9f32b3c

Please sign in to comment.