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