Skip to content
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

chore: 프로젝트 세팅 #2

Merged
merged 11 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# top-most EditorConfig file
root = true

[*]
# [encoding-utf8]
charset = utf-8

# [newline-lf]
end_of_line = lf

# [newline-eof]
insert_final_newline = true

[*.bat]
end_of_line = crlf

[*.java]
# [indentation-tab]
indent_style = tab

# [4-spaces-tab]
indent_size = 4
tab_width = 4

# [no-trailing-spaces]
trim_trailing_whitespace = true

[line-length-120]
max_line_length = 120
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@kdomo @uwoobeat @uiurihappy
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/♻️-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "♻️ refactor"
about: 리팩토링 이슈 템플릿
title: "♻️ "
labels: "♻️ refactor"
assignees: ''

---

## 📌 Description

-
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/⚙️-chore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "⚙️ chore"
about: 빌드 및 CI/CD 이슈 템플릿
title: "⚙️ "
labels: "⚙️ chore"
assignees: ''

---

## 📌 Description

-
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/✅-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "✅ test"
about: 테스트 이슈 템플릿
title: "✅ "
labels: "✅ test"
assignees: ''

---

## 📌 Description

-
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/✨-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "✨ feature"
about: 기능 추가 이슈 템플릿
title: "✨ "
labels: "✨ feature"
assignees: ''

---

## 📌 Description

-
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/🐛-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "🐛 fix"
about: 버그 및 에러 이슈 템플릿
title: "🐛 "
labels: "🐛 bug/error"
assignees: ''

---

## 📌 Description

-
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/📝-documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: "📝 documentation"
about: 문서화 이슈 템플릿
title: "📝 "
labels: "📝 documentation"
assignees: ''

---

## 📌 Description
-
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## 🌱 관련 이슈
<p> # 뒤에 이슈 번호를 작성해주세요. <p>

- close #

---
## 📌 작업 내용 및 특이사항
-

---
## 📝 참고사항
-

---
## 📚 기타
-

38 changes: 38 additions & 0 deletions .github/workflows/develop_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: develop(pull_request) Check Style And Test
on:
pull_request:
branches:
- develop
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 17 ]
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'

- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Code Formatting Check With CheckStyle
run: |
./gradlew checkstyleMain checkstyleTest

- name: Test
run: |
./gradlew test
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.1.5'
id 'io.spring.dependency-management' version '1.1.3'
id 'checkstyle'
}

group = 'com.depromeet'
Expand Down Expand Up @@ -38,3 +39,15 @@ tasks.named('bootBuildImage') {
tasks.named('test') {
useJUnitPlatform()
}

tasks.withType(Checkstyle) {
reports {
xml.required = true
html.required = true
}
}

checkstyle {
configFile = file("config/checkstyle/naver-checkstyle-rules.xml")
configProperties = ['suppressionFile': file("config/checkstyle/naver-checkstyle-suppressions.xml")]
}
Loading
Loading