Skip to content

Commit

Permalink
Fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 30, 2023
1 parent 0d6daa3 commit bfb4705
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,47 @@ jobs:
include:
- 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: "phpstan@dev"

- 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"
- 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: "mysqli"
mode: "recording"

- 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: "recording"
- php-version: '8.1'
db-image: 'mariadb:latest'
db-options: '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60'
reflector: "mysqli"
mode: "recording"

- php-version: "8.2"
db-image: 'mysql:8.0'
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "mysqli"
mode: "recording"
- php-version: '8.2'
db-image: 'mariadb:latest'
db-options: '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60'
reflector: "mysqli"
mode: "recording"

- 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 @@ -60,13 +68,13 @@ jobs:

# https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
services:
mysql:
database:
image: ${{ matrix.db-image }}
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
options: ${{ matrix.db-options }}

steps:
- uses: actions/checkout@v3
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
concurrency:
group: tests-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
cancel-in-progress: true

jobs:

phpunit:
Expand All @@ -22,71 +22,84 @@ jobs:
include:
- php-version: "7.2"
db-image: 'mysql:5.7'
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-lowest"

- php-version: "7.2"
db-image: 'mysql:5.7'
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: "7.3"
db-image: 'mysql:5.7'
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "pdo-mysql"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: "7.4"
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"
composer-options: "--prefer-dist"
- 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"
composer-options: "--prefer-dist"
- 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: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"

- 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: "recording"
composer-options: "--prefer-dist"
- php-version: '8.1'
db-image: 'mariadb:latest'
db-options: '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"

- php-version: "8.2"
db-image: 'mysql:8.0'
db-options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"
- php-version: '8.2'
db-image: 'mariadb:latest'
db-options: '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60'
reflector: "mysqli"
mode: "recording"
composer-options: "--prefer-dist"

- 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: "pdo-mysql"
mode: "replay-and-recording"
composer-options: "--prefer-dist"

- 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: "pdo-mysql"
mode: "empty-recording"
composer-options: "--prefer-dist"
- 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: "pdo-mysql"
mode: "empty-replay-and-recording"
composer-options: "--prefer-dist"
Expand All @@ -97,13 +110,13 @@ jobs:

# https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
services:
mysql:
database:
image: ${{ matrix.db-image }}
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --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 bfb4705

Please sign in to comment.