Add MySQL service to Github actions
This commit is contained in:
parent
d826a0b8b5
commit
aef5c56f6c
13
.github/workflows/rust.yml
vendored
13
.github/workflows/rust.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user