From 8ab1ea933484471c8bdc5029e19a5f004e7d2909 Mon Sep 17 00:00:00 2001 From: Nandor Kracser Date: Wed, 18 Mar 2020 11:04:42 +0100 Subject: [PATCH] ci: add mysql service Signed-off-by: Nandor Kracser --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ff6a724..21adcb79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,15 @@ jobs: - 5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + mysql: + image: mysql:5.7 + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: dex + ports: + - 3306:3306 + options: --health-cmd "mysql -proot -e \"show databases;\"" --health-interval 10s --health-timeout 5s --health-retries 5 + etcd: image: gcr.io/etcd-development/etcd:v3.2.9 ports: @@ -45,9 +54,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Setup MySQL database - run: mysql -u root -proot -e 'CREATE DATABASE dex;' - - name: Run tests run: make testall env: