-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (29 loc) · 942 Bytes
/
Copy pathstatic-analysis.yml
File metadata and controls
38 lines (29 loc) · 942 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
name: 'Static Analysis'
on: [push, pull_request]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
sa-phpstan:
runs-on: ubuntu-latest
name: PHPStan
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
php-version: '8.5'
tools: composer:v2,flex
extensions: curl, iconv, mbstring, zip
coverage: none
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist
env:
SYMFONY_REQUIRE: '8.1.*'
- name: Run PHPStan
run: vendor/bin/phpstan analyze --error-format=github