-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (37 loc) · 1.09 KB
/
Copy pathphpstan.yml
File metadata and controls
41 lines (37 loc) · 1.09 KB
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
41
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "PHPStan"
on:
pull_request:
paths:
- 'extractor/**'
- '.github/workflows/phpstan.yml'
push:
branches:
- "main"
paths:
- 'extractor/**'
- '.github/workflows/phpstan.yml'
permissions:
contents: read
jobs:
phpstan:
name: "PHPStan"
runs-on: "ubuntu-latest"
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: "Install PHP"
uses: "shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc" # v2.37.1
with:
coverage: "none"
php-version: "8.3"
- name: "Install dependencies"
run: "composer install"
working-directory: ./extractor
- name: "Run PHPStan"
working-directory: ./extractor
run: "vendor/bin/phpstan"