Skip to content

Commit

Permalink
healthcheck is needed , plz work
Browse files Browse the repository at this point in the history
  • Loading branch information
pxp9 committed Apr 9, 2024
1 parent 2b30c0a commit 9f0c74d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,12 @@ jobs:
env:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: fang
# Set health checks to wait until postgres has started
# here we should check if mysql is ready, but this does not work
options: >-
--health-cmd='$(mysqladmin ping -h localhost -P 3306 -u root --password=mysql 2>&1)'
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 3306:3306
Expand All @@ -240,7 +245,7 @@ jobs:
- name: Install diesel-cli
run: cargo install diesel_cli --no-default-features --features mysql

- name: Setup Postgres db
- name: Setup MySQL db
working-directory: ./fang/mysql_migrations
run: diesel setup --database-url "mysql://root:mysql@localhost/fang"

Expand Down

0 comments on commit 9f0c74d

Please sign in to comment.