@@ -3,8 +3,6 @@ name: Run Spring Boot Tests
33on :
44 push :
55 branches :
6- - main
7- - develop
86 - " fix/**"
97 pull_request :
108 branches :
@@ -16,31 +14,31 @@ jobs:
1614 runs-on : ubuntu-latest
1715
1816 steps :
19- - name : Checkout code
17+ - name : Checkout code (코드 체크아웃)
2018 uses : actions/checkout@v2
2119
22- - name : Set up JDK 17
20+ - name : Set up JDK 17 (JDK 17 설정)
2321 uses : actions/setup-java@v2
2422 with :
2523 distribution : ' temurin'
2624 java-version : ' 17'
2725
28- - name : Create application.properties from secret
26+ - name : Create application.properties from git secret (application.properties 파일 생성)
2927 run : |
30- mkdir -p src/main/resources
31- echo "$APPLICATION" > src/main/resources/application.properties
28+ mkdir -p default/src/main/resources
29+ mkdir -p chat/src/main/resources
30+ echo "$APPLICATION_DEFAULT" > default/src/main/resources/application.properties
31+ echo "$APPLICATION_CHAT" > chat/src/main/resources/application.properties
3232 env :
33- APPLICATION : ${{ secrets.APPLICATION }}
34-
35- - name : Grant execute permission to Gradle
36- run : chmod +x gradlew
33+ APPLICATION_DEFAULT : ${{ secrets.APPLICATION_DEFAULT }}
34+ APPLICATION_CHAT : ${{ secrets.APPLICATION_CHAT }}
3735
38- - name : Run tests
39- run : ./gradlew test
36+ - name : Grant execute permission to Gradle (Gradle 실행 권한 부여)
37+ run : |
38+ chmod +x ./default/gradlew
39+ chmod +x ./chat/gradlew
4040
41- - name : Upload test results (optional)
42- if : failure()
43- uses : actions/upload-artifact@v4
44- with :
45- name : test-results
46- path : build/test-results/test
41+ - name : Run tests (테스트 실행)
42+ run : |
43+ ./default/gradlew test
44+ ./chat/gradlew test
0 commit comments