Skip to content

Commit

Permalink
[fix] : test 경로에 설정 파일 추가 (#15)
Browse files Browse the repository at this point in the history
* [chore] : test용 application.yml 생성 및 gitignore에 추가

* [chore] : CI 진행 시 secret에서 테스트용 application.yml 가져오기

* [chore] : test용과 main용 application.yml 구분 위해 secret 변수 수정
  • Loading branch information
hyun2371 authored Aug 3, 2024
1 parent ad20e37 commit cdbb73c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
java-version: '17'
distribution: 'temurin'

# yml 파일 생성
# main 경로 application.yml 파일 생성
- name: Generate application.yml
run: |
mkdir -p ./src/main/resources
echo "${{ secrets.APPLICATION_YML }}" | base64 -d > ./src/main/resources/application.yml
echo "${{ secrets.MAIN_APPLICATION_YML }}" | base64 -d > ./src/main/resources/application.yml
# gradle 권한 부여
- name: Grant execute permission for gradlew
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
java-version: '17'
distribution: 'temurin'

# test 경로 application.yml 파일 생성
- name: Generate application.yml
run: |
mkdir -p ./src/test/resources
echo "${{ secrets.TEST_APPLICATION_YML }}" | base64 -d > ./src/test/resources/application.yml
# gradle 권한 부여
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ out/
.vscode/
/src/main/resources/application.yml
.DS_Store
/src/test/resources/application.yml

0 comments on commit cdbb73c

Please sign in to comment.