Skip to content

Commit ecc41aa

Browse files
committed
run static analysis under both Swoole 5.1 and 6.0
Signed-off-by: Demin Yin <deminy@deminy.net>
1 parent 223b497 commit ecc41aa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/static_analysis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on: [ push, pull_request, workflow_dispatch ]
55
jobs:
66
static-analysis:
77
runs-on: ubuntu-22.04
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
version: ["5.1", "6.0"]
12+
813
container:
9-
image: deminy/swoole-by-examples:server-5.1
14+
image: phpswoole/swoole:${{ matrix.version }}
1015

1116
steps:
1217
- name: Checkout
@@ -19,7 +24,7 @@ jobs:
1924
composer global require -n -q --no-progress -- \
2025
phpstan/phpstan=~2.0 \
2126
predis/predis=~2.2 \
22-
swoole/library=~5.0
27+
swoole/library=~${{ matrix.version }}
2328
2429
- name: Run Static Analysis
2530
run: ~/.composer/vendor/bin/phpstan analyse --no-progress --memory-limit 2G

0 commit comments

Comments
 (0)