Skip to content

Commit d77a798

Browse files
committed
fix: test.yml 수정
- 패키지가 변경되어서 그에 맞게 수정
1 parent 88e2eea commit d77a798

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Run Spring Boot Tests
33
on:
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
42.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)