Skip to content

Commit 3a17583

Browse files
committed
Update GitHub Actions workflow for Psalm with PHP 8.4 and improved caching
1 parent c246af4 commit 3a17583

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/psalm.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,30 @@ on:
55
paths:
66
- '**.php'
77
- 'psalm.xml.dist'
8+
- 'composer.json'
9+
- 'composer.lock'
10+
pull_request:
11+
paths:
12+
- '**.php'
13+
- 'psalm.xml.dist'
14+
- 'composer.json'
15+
- 'composer.lock'
816

917
jobs:
1018
psalm:
1119
name: psalm
1220
runs-on: ubuntu-latest
1321
steps:
14-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
1523

1624
- name: Setup PHP
1725
uses: shivammathur/setup-php@v2
1826
with:
19-
php-version: '7.4'
27+
php-version: '8.4'
2028
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
2129
coverage: none
22-
23-
- name: Cache composer dependencies
24-
uses: actions/cache@v2
25-
with:
26-
path: vendor
27-
key: composer-${{ hashFiles('composer.lock') }}
30+
tools: composer:v2
31+
cache: composer
2832

2933
- name: Run composer install
3034
run: composer install -n --prefer-dist

0 commit comments

Comments
 (0)