Skip to content

Commit

Permalink
connect to mysql on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperphoton committed Mar 18, 2022
1 parent 88444f9 commit 394563b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
MYSQL_USER: gorm
MYSQL_PASSWORD: gorm
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_HOST: mysql
ports:
- 3306:3306
options: >-
Expand All @@ -98,10 +99,10 @@ jobs:
id: go

- name: Create Read Database
run: mysqladmin --host=localhost -ugorm -pgorm create sharding-read-test
run: mysqladmin -h mysql -ugorm -pgorm create sharding-read-test

- name: Create Write Database
run: mysqladmin --host=localhost -ugorm -pgorm create sharding-write-test
run: mysqladmin -h mysql -ugorm -pgorm create sharding-write-test

- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand Down

0 comments on commit 394563b

Please sign in to comment.