-
Notifications
You must be signed in to change notification settings - Fork 1
chore: 프로젝트 세팅 (#1) #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- | ||
| name: "🐛️ Bug" | ||
| description: "버그 발견 및 수정/해결" | ||
| title: "🐛️[BUG]: " | ||
| labels: "🐛bug" | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## 📌 버그 설명 | ||
| <!-- 발생한 버그에 대해 자세히 적어주세요. --> | ||
|
|
||
| - | ||
|
|
||
| <br/> | ||
|
|
||
| ## ✅ 수정할 항목 | ||
|
|
||
| - [ ] | ||
| - [ ] | ||
|
|
||
| <br/> | ||
|
|
||
| ## 💬 기타 참고 사항 (선택) | ||
| <!-- 기타 참고 사항이 있다면 자유롭게 적어주세요. (관련 커밋, 관련 PR, 관련 링크, 이미지, 화면 캡처, 레퍼런스 자료 등) --> | ||
| <!-- 관련 에러 로그, 에러 스택 플레이스, 화면 캡처 등 --> | ||
|
|
||
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| name: "⚙️ Chore" | ||
| description: "세팅 및 설정, 빌드, CICD 관련 작업" | ||
| title: "⚙️[CHORE]: " | ||
| labels: "⚙️chore" | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## 📌 작업 개요 | ||
| <!-- 어떤 작업인지 적어주세요. (예: dependency 업데이트, CI 설정 등) --> | ||
|
|
||
| - | ||
|
|
||
| <br/> | ||
|
|
||
| ## ✅ 작업 항목 | ||
|
|
||
| - [ ] | ||
| - [ ] | ||
|
|
||
| <br/> | ||
|
|
||
| ## 💬 기타 참고 사항 (선택) | ||
| <!-- 기타 참고 사항이 있다면 자유롭게 적어주세요. (관련 커밋, 관련 PR, 관련 링크, 이미지, 화면 캡처, 레퍼런스 자료 등) --> | ||
|
|
||
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| name: "📄 Documentation" | ||
| description: "문서화 작업" | ||
| title: "📄[DOCS]: " | ||
| labels: "📃docs" | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## 📌 문서 내용 개요 | ||
| <!-- 어떤 내용을 문서화하거나 수정할 것인지 적어주세요. --> | ||
|
|
||
| - | ||
|
|
||
| <br/> | ||
|
|
||
| ## ✅ 작업 항목 | ||
|
|
||
| - [ ] | ||
| - [ ] | ||
|
|
||
| <br/> | ||
|
|
||
| ## 💬 기타 참고 사항 (선택) | ||
| <!-- 기타 참고 사항이 있다면 자유롭게 적어주세요. (관련 커밋, 관련 PR, 관련 링크, 이미지, 화면 캡처, 레퍼런스 자료 등) --> | ||
|
|
||
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| name: "✨ Feature" | ||
| description: "새로운 기능 개발 및 수정" | ||
| title: "✨[Feature]: " | ||
| labels: "✨feature" | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## 📌 기능 설명 | ||
| <!-- 어떤 기능을 개발 or 수정하는지 적어주세요. --> | ||
|
|
||
| - | ||
|
|
||
| <br/> | ||
|
|
||
| ## ✅ 구현할 기능 목록 | ||
|
|
||
| - [ ] | ||
| - [ ] | ||
|
|
||
| <br/> | ||
|
|
||
| ## 💬 기타 참고 사항 (선택) | ||
| <!-- 기타 참고 사항이 있다면 자유롭게 적어주세요. (관련 커밋, 관련 PR, 관련 링크, 이미지, 화면 캡처, 레퍼런스 자료 등) --> | ||
|
|
||
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| name: "🪄 Refactor" | ||
| description: "기능 개선 및 기존 코드 리팩토링" | ||
| title: "🪄[REFACTOR]: " | ||
| labels: "🪄refactor" | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## 📌 리팩토링 설명 | ||
| <!-- 어떤 코드/로직을 리팩토링할 예정이며, 이유 등을 자세히 적어주세요. --> | ||
|
|
||
| - | ||
|
|
||
| <br/> | ||
|
|
||
| ## ✅ 작업 항목 | ||
|
|
||
| - [ ] | ||
| - [ ] | ||
|
|
||
| <br/> | ||
|
|
||
| ## 💬 기타 참고 사항 (선택) | ||
| <!-- 기타 참고 사항이 있다면 자유롭게 적어주세요. (관련 커밋, 관련 PR, 관련 링크, 이미지, 화면 캡처, 레퍼런스 자료 등) --> | ||
|
|
||
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ## 📌 작업 내용 및 특이사항 | ||
|
|
||
| - | ||
|
|
||
| <br/> | ||
|
|
||
| ## 🌱 관련 이슈 | ||
| <!-- # 뒤에 이슈 번호를 적어주세요. --> | ||
|
|
||
| - close # | ||
|
|
||
| <br/> | ||
|
|
||
| ## 🔍 참고사항(선택) | ||
|
|
||
| - | ||
|
|
||
| <br/> | ||
|
|
||
| ## 📚 기타(선택) | ||
| <!-- 스크린샷, 이미지 등 --> | ||
|
|
||
| - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: develop pull request Check and Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ "develop" ] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| DB_NAME: ${{ secrets.DATABASE_NAME }} | ||
| DB_USERNAME: ${{ secrets.DATABASE_USERNAME }} | ||
| DB_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} | ||
|
|
||
| strategy: | ||
| matrix: | ||
| java-version: [ 17 ] | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: ${{ matrix.java-version }} | ||
| distribution: 'temurin' | ||
|
|
||
| - name: Run MySQL with Docker | ||
| run: | | ||
| docker run -d \ | ||
| --name mysql \ | ||
| -e MYSQL_ROOT_PASSWORD=$DB_PASSWORD \ | ||
| -e MYSQL_DATABASE=$DB_NAME \ | ||
| -p 3306:3306 \ | ||
| mysql:8.0 | ||
|
|
||
| - name: Run Redis with Docker | ||
| run: | | ||
| docker run -d \ | ||
| --name redis \ | ||
| -p 6379:6379 \ | ||
| redis:7.0 | ||
|
|
||
| - name: Grant Execute Permission for Gradlew | ||
| run: chmod +x ./gradlew | ||
|
|
||
| - name: Run Gradle Check | ||
| run: ./gradlew check | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,5 +36,8 @@ out/ | |
| ### VS Code ### | ||
| .vscode/ | ||
|
|
||
| ### | ||
| .DS_Store | ||
|
|
||
| ### ENV | ||
| *.env | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,7 @@ spring: | |
| config: | ||
| activate: | ||
| on-profile: "prod" | ||
|
|
||
| jpa: | ||
| hibernate: | ||
| ddl-auto: none | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,19 @@ | ||
| spring: | ||
| profiles: | ||
| active: ${SPRING_PROFILES_ACTIVE:local} | ||
| include: | ||
| - datasource | ||
| - redis | ||
| - storage | ||
| - security | ||
|
|
||
| springdoc: | ||
| default-consumes-media-type: application/json;charset=UTF-8 | ||
| default-produces-media-type: application/json;charset=UTF-8 | ||
| swagger-ui: | ||
| path: /swagger-ui | ||
| disable-swagger-default-url: true | ||
| display-request-duration: true | ||
| tags-sorter: alpha | ||
| operations-sorter: alpha | ||
| syntax-highlight: | ||
| theme: none | ||
| urls-primary-name: StudyTrip API DOCS |
7 changes: 6 additions & 1 deletion
7
src/test/java/com/ject/studytrip/StudytripApplicationTests.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,18 @@ | ||
| package com.ject.studytrip; | ||
|
|
||
| import org.junit.jupiter.api.Test; | ||
| import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; | ||
| import org.springframework.boot.test.context.SpringBootTest; | ||
| import org.springframework.test.context.ActiveProfiles; | ||
|
|
||
| @ActiveProfiles("test") | ||
| @AutoConfigureTestDatabase( | ||
| replace = AutoConfigureTestDatabase.Replace.NONE) // 테스트 시 내장된 인메모리 DB를 사용하지 않는다는 설정 | ||
| @SpringBootTest | ||
| class StudytripApplicationTests { | ||
|
|
||
| @Test | ||
| void contextLoads() { | ||
| System.out.println("🌐 DB_HOST = " + System.getenv("DB_HOST")); | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.