File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -54,26 +54,33 @@ jobs:
5454 - name : Grant execute permission for gradlew
5555 run : chmod +x backend/gradlew
5656
57- # ✅ application-test.yml에서 사용하는 환경변수들로 .env 파일 생성
57+ # ✅ Redis 연결 테스트
58+ - name : Test Redis connection
59+ run : |
60+ echo "Testing Redis connection..."
61+ timeout 10s bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/localhost/6379; do sleep 1; done'
62+ echo "Redis is ready!"
63+
64+ # ✅ application-test.yml에서 사용하는 모든 환경변수를 .env 파일에 생성
5865 - name : Create test .env file
5966 working-directory : backend
6067 run : |
6168 cat > .env << 'EOF'
62- # Datasource 설정
69+ # Datasource 설정 (application-test.yml에서 참조)
6370 TEST_DATASOURCE_URL=jdbc:h2:mem:db_test;MODE=MySQL
6471 TEST_DATASOURCE_USERNAME=sa
6572 TEST_DATASOURCE_PASSWORD=
6673 TEST_DATASOURCE_DRIVER=org.h2.Driver
6774
68- # JPA 설정
75+ # JPA 설정 (application-test.yml에서 참조)
6976 TEST_JPA_HIBERNATE_DDL_AUTO=create-drop
7077
71- # Redis 설정 (GitHub Actions 서비스 사용)
78+ # Redis 설정 (application-test.yml에서 참조, GitHub Actions 서비스 사용)
7279 TEST_REDIS_HOST=localhost
7380 TEST_REDIS_PORT=6379
7481 TEST_REDIS_PASSWORD=
7582
76- # JWT 설정
83+ # JWT 설정 (application-test.yml에서 참조)
7784 CUSTOM_JWT_SECRET_KEY=test-secret-key-for-testing-purposes-only-minimum-256-bits
7885 CUSTOM_JWT_ACCESS_TOKEN_EXPIRATION_SECONDS=3600
7986 EOF
You can’t perform that action at this time.
0 commit comments