-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (33 loc) · 1015 Bytes
/
phpstan.yml
File metadata and controls
40 lines (33 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: PHPStan Static analysis
on: [push, pull_request]
jobs:
psalm:
name: PHPStan
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: memory_limit=-1,apc.enable_cli=1,zend.assertions=1
php-version: "8.2"
tools: flex
- name: Install dependencies
run: composer install
- name: "Restore result cache"
uses: actions/cache/restore@v4
with:
path: tmp # same as in phpstan.neon
key: "phpstan-result-cache-${{ github.run_id }}"
restore-keys: |
phpstan-result-cache-
- name: "Run PHPStan"
run: "vendor/bin/phpstan"
- name: "Save result cache"
uses: actions/cache/save@v4
if: always()
with:
path: tmp # same as in phpstan.neon
key: "phpstan-result-cache-${{ github.run_id }}"