-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (33 loc) · 1 KB
/
static-analysis.yml
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
name: static analysis
on:
push:
pull_request:
jobs:
linux_tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
fail-fast: true
matrix:
include:
- php: "8.1"
swoole: "5.0.3"
- php: "8.2"
swoole: "5.0.3"
- php: "8.1"
swoole: "5.1.3"
- php: "8.2"
swoole: "5.1.3"
- php: "8.3"
swoole: "5.1.3"
name: PHP ${{ matrix.php }} (swoole-${{ matrix.swoole }})
container:
image: phpswoole/swoole:${{ matrix.swoole }}-php${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o
- name: Execute static analysis
run: vendor/bin/phpstan --configuration="phpstan.neon.dist" --memory-limit=-1