Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mszulik committed Oct 8, 2024
1 parent 7c935d1 commit 505309a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request:
workflow_dispatch:

env:
MYSQL_DB_OPTIONS: "--health-cmd=\"mysqladmin ping\" --health-interval=10s --health-timeout=5s --health-retries=3"
POSTGRES_DB_OPTIONS: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3"

jobs:
mysql-tests:
name: Setup testing environment and execute tests
Expand All @@ -16,15 +20,15 @@ jobs:
fail-fast: true
matrix:
db-image: [ "mysql:8.0", "postgres:17" ]
db-options: ["--health-cmd=\"mysqladmin ping\" --health-interval=10s --health-timeout=5s --health-retries=3", "--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3"]
db-options: [$MYSQL_DB_OPTIONS, $POSTGRES_DB_OPTIONS]
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
dependency-version: [ prefer-stable ]
exclude:
- db-image: postgres:17
db-options: "--health-cmd=\"mysqladmin ping\" --health-interval=10s --health-timeout=5s --health-retries=3"
db-options: $MYSQL_DB_OPTIONS
- db-image: mysql:8.0
db-options: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3"
db-options: $POSTGRES_DB_OPTIONS
with:
DATABASE_IMAGE: ${{ matrix.db-image }}
DATABASE_NAME: protector_test
Expand Down

0 comments on commit 505309a

Please sign in to comment.