Skip to content

Commit

Permalink
Include db-options in the matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and staabm committed Jul 30, 2023
1 parent c004c7c commit 7c9cf5a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,31 @@ jobs:
- "recording"

include:
- db-image: "mysql:8.0"
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'

- db-image: "mariadb:latest"
db-options: '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60'

# PHPStan development version
- php-version: "8.0"
db-image: "mysql:8.0"
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "pdo-mysql"
mode: "recording"
phpstan-version: "dev"

# PDO MySQL reflector
- php-version: "8.0"
db-image: "mysql:8.0"
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "pdo-mysql"
mode: "recording"

# Replay and Recording mode
- php-version: "8.1"
db-image: "mysql:8.0"
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "mysqli"
mode: "replay-and-recording"

Expand All @@ -59,7 +68,7 @@ jobs:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
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' }}
options: ${{ matrix.db-options }}

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 7c9cf5a

Please sign in to comment.