Skip to content

Commit

Permalink
Conditionally start services on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Jan 1, 2022
1 parent bb8030c commit 51995c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
services:
postgres:
image: postgres:11
if: matrix.database == 'postgresql'
env:
POSTGRES_USER: alchemy_user
POSTGRES_PASSWORD: password
Expand All @@ -36,6 +37,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql:
image: mysql:latest
if: matrix.database == 'mysql'
ports: ['3306:3306']
env:
MYSQL_USER: alchemy_user
Expand Down

0 comments on commit 51995c6

Please sign in to comment.