Skip to content

Commit

Permalink
build: added hostname resolution
Browse files Browse the repository at this point in the history
Signed-off-by: mirageoasis <[email protected]>
  • Loading branch information
mirageoasis committed Jul 28, 2024
1 parent 6c5a3f8 commit aaafa84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Set /etc/hosts for MySQL and Redis
run: |
echo "127.0.0.1 mysql" | sudo tee -a /etc/hosts
echo "127.0.0.1 redis" | sudo tee -a /etc/hosts
- name: Wait for MySQL to be ready
run: |
until mysqladmin ping -h mysql -u root -proot --silent; do
Expand Down

0 comments on commit aaafa84

Please sign in to comment.