From aef5c56f6c43b6c6b4ba17437d885db2515e683e Mon Sep 17 00:00:00 2001 From: Sam Samai Date: Wed, 14 Jul 2021 10:02:01 +1000 Subject: [PATCH] Add MySQL service to Github actions --- .github/workflows/rust.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4ce00b59..bc9eebaa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,6 +15,19 @@ jobs: test: name: Unit Test runs-on: ubuntu-20.04 + services: + mysql: + image: mysql:5.7 + env: + MYSQL_HOST: 127.0.0.1 + MYSQL_DB: mysql + MYSQL_USER: sea + MYSQL_PASSWORD: sea + MYSQL_ALLOW_EMPTY_PASSWORD: yes + MYSQL_ROOT_PASSWORD: + ports: + - "3306:3306" + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=15s --health-retries=10 steps: - uses: actions/checkout@v2