-
-
Notifications
You must be signed in to change notification settings - Fork 61
44 lines (38 loc) · 880 Bytes
/
phpstan.yml
File metadata and controls
44 lines (38 loc) · 880 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
41
42
43
44
name: Static Code Analysis
on:
push:
branches:
- master
- ci
pull_request:
branches:
- master
concurrency:
group: phpstan-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: PHP${{ matrix.php-version }} Static Code Analysis on Linux
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '8.3', '8.4', '8.5' ]
max-parallel: 5
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: swoole
coverage: none
- name: Setup Dependencies
env:
COMPOSER_ROOT_VERSION: 2.x-dev
run:
composer install -o
- name: Run Analysis
run:
composer analyse