Skip to content

Commit 0e5a449

Browse files
szepeviktorstaabm
andauthored
Add a real matrix to Static analysis workflow (#613)
Co-authored-by: Markus Staab <[email protected]>
1 parent 7887172 commit 0e5a449

File tree

2 files changed

+29
-32
lines changed

2 files changed

+29
-32
lines changed

.github/workflows/phpstan.yml

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,44 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18+
php-version:
19+
- "8.0"
20+
- "8.1"
21+
- "8.2"
22+
db-image:
23+
- "mysql:8.0"
24+
- "mariadb:latest"
25+
reflector:
26+
- "mysqli"
27+
mode:
28+
- "recording"
29+
1830
include:
31+
- db-image: "mysql:8.0"
32+
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
33+
34+
- db-image: "mariadb:latest"
35+
db-options: '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60'
36+
37+
# PHPStan development version
1938
- php-version: "8.0"
20-
db-image: 'mysql:8.0'
39+
db-image: "mysql:8.0"
40+
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
2141
reflector: "pdo-mysql"
2242
mode: "recording"
23-
phpstan-version: "phpstan@dev"
43+
phpstan-version: "dev"
2444

45+
# PDO MySQL reflector
2546
- php-version: "8.0"
26-
db-image: 'mysql:8.0'
47+
db-image: "mysql:8.0"
48+
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
2749
reflector: "pdo-mysql"
2850
mode: "recording"
29-
- php-version: "8.0"
30-
db-image: 'mysql:8.0'
31-
reflector: "mysqli"
32-
mode: "recording"
33-
34-
- php-version: "8.1"
35-
db-image: 'mysql:8.0'
36-
reflector: "mysqli"
37-
mode: "recording"
38-
- php-version: '8.1'
39-
db-image: 'mariadb:latest'
40-
reflector: "mysqli"
41-
mode: "recording"
42-
43-
- php-version: "8.2"
44-
db-image: 'mysql:8.0'
45-
reflector: "mysqli"
46-
mode: "recording"
47-
- php-version: '8.2'
48-
db-image: 'mariadb:latest'
49-
reflector: "mysqli"
50-
mode: "recording"
5151

52+
# Replay and Recording mode
5253
- php-version: "8.1"
53-
db-image: 'mysql:8.0'
54+
db-image: "mysql:8.0"
55+
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
5456
reflector: "mysqli"
5557
mode: "replay-and-recording"
5658

@@ -66,7 +68,7 @@ jobs:
6668
MYSQL_ROOT_PASSWORD: root
6769
ports:
6870
- 3306:3306
69-
options: ${{ startsWith(matrix.db-image, 'mariadb') && '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60' || '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3' }}
71+
options: ${{ matrix.db-options }}
7072

7173
steps:
7274
- uses: actions/checkout@v3

phpstan.neon.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ parameters:
1212
paths:
1313
- src/
1414

15-
unused_public:
16-
methods: true
17-
properties: true
18-
constants: true
19-
2015
bootstrapFiles:
2116
- bootstrap.php
2217

0 commit comments

Comments
 (0)