-
-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (33 loc) · 1.03 KB
/
static-analysis.yml
File metadata and controls
43 lines (33 loc) · 1.03 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
42
43
name: static analysis
on:
push:
pull_request:
jobs:
types:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- name: Source Code
config: phpstan.neon.dist
- name: Types
config: phpstan.types.neon.dist
name: ${{ matrix.name }}
container:
image: phpswoole/swoole:6.1.4-php8.4
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Log trigger context
uses: ./.github/actions/log-trigger-context
- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: /root/.composer/cache
key: composer-8.4-${{ hashFiles('composer.lock') }}
restore-keys: composer-8.4-
- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-interaction --no-progress
- name: Execute type checking
run: vendor/bin/phpstan --configuration="${{ matrix.config }}" --memory-limit=-1 --no-progress