ci: conditional loading db service

main
Washington Botelho 2022-05-18 10:54:56 -03:00
parent 4b76e10025
commit d9b45b8497
1 changed files with 2 additions and 0 deletions

View File

@ -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: >-