-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 778 Bytes
/
Copy pathphpstan.yml
File metadata and controls
34 lines (27 loc) · 778 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
name: PHPStan
permissions:
contents: read
on:
push:
paths:
- '**.php'
- 'phpstan.neon.dist'
jobs:
phpstan:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.head_ref }}
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
with:
php-version: '8.2'
coverage: none
- name: Install composer dependencies
uses: ramsey/composer-install@26d8a556604053a9612623447203a691f406fbe6 # v4
- name: Run PHPStan
run: vendor/bin/phpstan --error-format=github