Skip to content

Commit

Permalink
fix(spring_test): 디버깅
Browse files Browse the repository at this point in the history
  • Loading branch information
jjh4450 committed Nov 3, 2024
1 parent 2e8be83 commit b29d15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/spring_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ jobs:
DB_HOST_PORT: 3306
DB_CONTAINER_PORT: 3306
DB_NAME: ${{ secrets.DB_NAME }}
DB_CONTAINER_NAME: ${{ secrets.DB_CONTAINER_NAME }}
DB_CONTAINER_NAME: ${{ env.DB_CONTAINER_NAME }}
run: |
chmod +x ./gradlew
cd ./docker
docker compose up -d
# Wait for database to be ready
echo "Waiting for database to be ready..."
timeout 60s bash -c 'until docker exec -i $(docker ps -q --filter "name=${{ secrets.DB_CONTAINER_NAME }}") mysqladmin ping -h "127.0.0.1" --silent; do sleep 1; done'
timeout 60s bash -c 'until docker exec -i $(docker ps -q --filter "name=${{ env.DB_CONTAINER_NAME }}") mysqladmin ping -h "127.0.0.1" --silent; do sleep 1; done'
- name: Install dependencies
run: ./gradlew build -x test
Expand Down

0 comments on commit b29d15e

Please sign in to comment.