File tree Expand file tree Collapse file tree 1 file changed +29
-5
lines changed Expand file tree Collapse file tree 1 file changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,35 @@ jobs:
8080 - name : Create test .env file
8181 working-directory : backend
8282 run : |
83- set -euo pipefail
84- install -d -m 700 .
85- echo "${{ secrets.DEV_ENV_BASE64 }}" | base64 -d > .env
86- chmod 600 .env
87- test -s .env || { echo ".env is empty"; exit 1; }
83+ cat > .env << 'EOF'
84+ # Datasource 설정 (application-test.yml에서 참조)
85+ TEST_DATASOURCE_URL=jdbc:h2:mem:db_test;MODE=MySQL
86+ TEST_DATASOURCE_USERNAME=sa
87+ TEST_DATASOURCE_PASSWORD=
88+ TEST_DATASOURCE_DRIVER=org.h2.Driver
89+
90+ # JPA 설정 (application-test.yml에서 참조)
91+ TEST_JPA_HIBERNATE_DDL_AUTO=create-drop
92+
93+ send_email_password=${{ secrets.SEND_EMAIL_PASSWORD }}
94+ send_email_address=${{ secrets.SEND_EMAIL_ADDRESS }}
95+
96+ # Redis 설정 (application-test.yml에서 참조, GitHub Actions 서비스 사용)
97+ TEST_REDIS_HOST=localhost
98+ TEST_REDIS_PORT=6379
99+ TEST_REDIS_PASSWORD=
100+
101+ # Qdrant
102+ TEST_QDRANT_HOST=localhost
103+ TEST_QDRANT_PORT=6333
104+
105+ # CI/CD 환경에서는 Embedded Redis 끄기
106+ SPRING_DATA_REDIS_EMBEDDED=false
107+
108+ # JWT 설정 (application-test.yml에서 참조)
109+ CUSTOM_JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}
110+ CUSTOM_JWT_ACCESS_TOKEN_EXPIRATION_SECONDS=3600
111+ EOF
88112
89113 - name : Run unit, and domain tests
90114 run : ${{ matrix.gradle_cmd }} clean test
You can’t perform that action at this time.
0 commit comments