Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ab1ea9

Browse files
committed
ci: add mysql service
Signed-off-by: Nandor Kracser <[email protected]>
1 parent 99c3ec6 commit 8ab1ea9

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
- 5432
2121
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2222

23+
mysql:
24+
image: mysql:5.7
25+
env:
26+
MYSQL_ROOT_PASSWORD: root
27+
MYSQL_DATABASE: dex
28+
ports:
29+
- 3306:3306
30+
options: --health-cmd "mysql -proot -e \"show databases;\"" --health-interval 10s --health-timeout 5s --health-retries 5
31+
2332
etcd:
2433
image: gcr.io/etcd-development/etcd:v3.2.9
2534
ports:
@@ -45,9 +54,6 @@ jobs:
4554
- name: Checkout code
4655
uses: actions/checkout@v2
4756

48-
- name: Setup MySQL database
49-
run: mysql -u root -proot -e 'CREATE DATABASE dex;'
50-
5157
- name: Run tests
5258
run: make testall
5359
env:

0 commit comments

Comments
 (0)