Skip to content

Commit 9cb6495

Browse files
committed
Update static analysis workflow dependencies
1 parent 96a1e0f commit 9cb6495

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/static-analysis.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,23 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- name: Repository checkout
21+
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
2122

2223
- name: Setup PHP with PECL extension
23-
uses: shivammathur/setup-php@2.25.4
24+
uses: shivammathur/setup-php@efffd0e4f2504f936fcfe3b69293d31ce0e2fd7a # v2.30.3
2425
with:
25-
php-version: 8.0
26+
php-version: 8.1
2627
tools: composer:v2
2728
coverage: none
2829

2930
- name: Validate composer.json and composer.lock
30-
run: composer validate
31-
32-
- name: Get composer cache directory
33-
id: composer-cache
34-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
35-
36-
- name: Cache Composer packages
37-
uses: actions/cache@v3
38-
with:
39-
path: ${{ steps.composer-cache.outputs.dir }}
40-
key: phpstan-linux-php-8.0-${{ hashFiles('**/composer.lock') }}
41-
restore-keys: phpstan-linux-php-8.0-
31+
run: composer validate --strict
4232

4333
- name: Install dependencies
44-
if: steps.composer-cache.outputs.cache-hit != 'true'
45-
run: composer update --prefer-stable --ignore-platform-req=php --no-progress --no-interaction
34+
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0
35+
with:
36+
dependency-versions: lowest
4637

4738
- name: Run PHPStan
4839
run: composer run-script phpstan -- --no-progress

0 commit comments

Comments
 (0)