-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (37 loc) · 1.09 KB
/
phpstan.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@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: "Install PHP"
uses: "shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1" # v2
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"