Skip to content

Commit

Permalink
Initialize and wait for database in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Feb 10, 2024
1 parent a95e19d commit dd6236c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ jobs:
echo "Waiting for database initialization..."
sleep 10
done
until docker compose exec -T mysql mysql -uroot -proot -e "SELECT 1 FROM users LIMIT 1;" isuconp; do
echo "Waiting for database initialization..."
sleep 10
done
until docker compose exec -T mysql mysql -uroot -proot -e "SELECT 1 FROM comments LIMIT 1;" isuconp; do
echo "Waiting for database initialization..."
sleep 10
done
sleep 10
- name: Run the benchmark
continue-on-error: true
Expand Down

0 comments on commit dd6236c

Please sign in to comment.