ci: conditional loading db service
parent
4b76e10025
commit
d9b45b8497
|
@ -28,6 +28,7 @@ jobs:
|
||||||
MYSQL_DATABASE: rating_test
|
MYSQL_DATABASE: rating_test
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
|
|
||||||
|
if: ${{ matrix.db == 'mysql' }}
|
||||||
image: mysql:8
|
image: mysql:8
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
||||||
|
|
||||||
|
@ -40,6 +41,7 @@ jobs:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_HOST_AUTH_METHOD: trust
|
POSTGRES_HOST_AUTH_METHOD: trust
|
||||||
|
|
||||||
|
if: ${{ matrix.db == 'postgres' }}
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
||||||
|
|
||||||
options: >-
|
options: >-
|
||||||
|
|
Loading…
Reference in New Issue