From d9b45b849743f9a2a0813cbe32f8a239d0595f65 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Wed, 18 May 2022 10:54:56 -0300 Subject: [PATCH] ci: conditional loading db service --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6fe1616..b1123da 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,6 +28,7 @@ jobs: MYSQL_DATABASE: rating_test MYSQL_ALLOW_EMPTY_PASSWORD: yes + if: ${{ matrix.db == 'mysql' }} image: mysql:8 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 @@ -40,6 +41,7 @@ jobs: POSTGRES_USER: postgres POSTGRES_HOST_AUTH_METHOD: trust + if: ${{ matrix.db == 'postgres' }} image: postgres:alpine options: >-