Skip to content

Commit b8a7040

Browse files
committed
Use composer v6 with cache for phpstan
1 parent 7074f5d commit b8a7040

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: php-actions/composer@v5
17+
- name: Cache Composer packages
18+
id: composer-cache
19+
uses: actions/cache@v2
20+
with:
21+
path: vendor
22+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-php-
25+
- name: Composer install
26+
uses: php-actions/composer@v6
27+
with:
28+
php_version: 7.4
1829

1930
- name: PHPStan Static Analysis
2031
uses: php-actions/phpstan@v3

0 commit comments

Comments
 (0)