-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 프로젝트를 스캐폴딩한다 * fix: sonar 분석이 main에서 안되는 버그를 수정한다
- Loading branch information
Showing
22 changed files
with
684 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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 @@ | ||
* @devxb @ddingmin @choidongkuen |
This file contains 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,14 @@ | ||
--- | ||
name: ISSUE TEMPLATE | ||
about: 이슈 템플릿 | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## 기능 | ||
|
||
## Todo | ||
- [ ] typing here... | ||
- [ ] typing here... |
This file contains 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,19 @@ | ||
<!-- | ||
PR 타이틀 = 행위: 도메인이 드러나는 설명 | ||
--> | ||
|
||
## 🚀 어떤 기능을 개발했나요? | ||
|
||
|
||
## 🕶️ 어떻게 해결했나요? | ||
|
||
|
||
## 🦀 이슈 넘버 | ||
|
||
<!-- | ||
## (option) 어떤 부분에 집중하여 리뷰해야 할까요? | ||
--> | ||
|
||
<!-- | ||
## 참고자료 | ||
--> |
This file contains 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,14 @@ | ||
name: 👌Auto assigner | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
assign: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hkusu/review-assign-action@v1 | ||
with: | ||
assignees: ${{ github.actor }} |
This file contains 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,44 @@ | ||
name: ✅Integration tester | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Test and analyze | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 21 | ||
distribution: 'zulu' | ||
|
||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Test and analyze | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew test sonar --info |
This file contains 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,76 @@ | ||
name: 🏷️ Type labeler | ||
|
||
on: | ||
pull_request: | ||
issues: | ||
|
||
jobs: | ||
add_label: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: add ✨ feature label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'feat:') }} | ||
with: | ||
labels: ✨ feature | ||
|
||
- name: add 🐛 bug-fix label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'fix:') }} | ||
with: | ||
labels: 🐛 bug-fix | ||
|
||
- name: add ♻️ refactor label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'refactor:') }} | ||
with: | ||
labels: ♻️ refactor | ||
|
||
- name: add 🎨 style label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'style:') }} | ||
with: | ||
labels: 🎨 style | ||
|
||
- name: add 🏗️ build label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'chore:') }} | ||
with: | ||
labels: 🏗️ build | ||
|
||
- name: add ✅ test label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'test:') }} | ||
with: | ||
labels: ✅ test | ||
|
||
- name: add 📝 docs label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'docs:') }} | ||
with: | ||
labels: 📝 docs | ||
|
||
- name: add 👷 ci label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'ci:') }} | ||
with: | ||
labels: 👷 ci | ||
|
||
- name: add ⚡️ perf label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: startsWith(github.event.pull_request.title, 'perf:') }} | ||
with: | ||
labels: ⚡️ perf | ||
|
||
- name: add 🔖 release label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: ${{ startsWith(github.event.pull_request.title, 'release:') }} | ||
with: | ||
labels: 🔖 release | ||
|
This file contains 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,39 @@ | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
This file contains 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 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'org.springframework.boot' apply false | ||
id 'io.spring.dependency-management' | ||
id 'org.sonarqube' | ||
} | ||
|
||
apply from: "gradle/spring.gradle" | ||
apply from: "gradle/devtool.gradle" | ||
apply from: "gradle/junit.gradle" | ||
apply from: "gradle/sonar.gradle" | ||
apply from: "gradle/db.gradle" | ||
|
||
allprojects { | ||
|
||
group = "${projectGroup}" | ||
version = "${projectVersion}" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
} |
This file contains 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,19 @@ | ||
### PROJECT ### | ||
projectGroup=net.teumteum | ||
projectVersion=1.0 | ||
|
||
### JUNIT ### | ||
junitVersion=5.10.1 | ||
|
||
### LOMBOK ### | ||
lombokVersion=1.18.30 | ||
|
||
### SPRING ### | ||
springBootVersion=3.2.0 | ||
springDependencyManagementVersion=1.1.4 | ||
|
||
### SONAR ### | ||
sonarVersion=4.4.1.3373 | ||
|
||
### MYSQL ### | ||
mysqlConnectorVersion=8.0.33 |
This file contains 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,7 @@ | ||
dependencies { | ||
implementation "org.flywaydb:flyway-core" | ||
implementation "org.flywaydb:flyway-mysql" | ||
implementation "mysql:mysql-connector-java:${mysqlConnectorVersion}" | ||
|
||
testRuntimeOnly "com.h2database:h2" | ||
} |
This file contains 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,9 @@ | ||
allprojects { | ||
dependencies { | ||
compileOnly "org.projectlombok:lombok:${lombokVersion}" | ||
annotationProcessor "org.projectlombok:lombok" | ||
|
||
testCompileOnly "org.projectlombok:lombok:${lombokVersion}" | ||
testAnnotationProcessor "org.projectlombok:lombok" | ||
} | ||
} |
This file contains 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,13 @@ | ||
allprojects { | ||
apply plugin: "java-library" | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
dependencies { | ||
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}" | ||
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}" | ||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}" | ||
} | ||
} |
This file contains 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,7 @@ | ||
sonar { | ||
properties { | ||
property "sonar.projectKey", "depromeet_teum-teum-server" | ||
property "sonar.organization", "depromeet-1" | ||
property "sonar.host.url", "https://sonarcloud.io" | ||
} | ||
} |
This file contains 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 @@ | ||
allprojects { | ||
apply plugin: "java-library" | ||
apply plugin: "org.springframework.boot" | ||
apply plugin: "io.spring.dependency-management" | ||
|
||
bootJar.enabled = false | ||
jar.enabled = true | ||
|
||
if (rootProject.name == name) { | ||
bootJar.enabled = true | ||
} | ||
|
||
dependencies { | ||
implementation "org.springframework.boot:spring-boot-starter" | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
implementation "org.springframework.boot:spring-boot-starter-actuator" | ||
|
||
runtimeOnly 'io.micrometer:micrometer-registry-prometheus' | ||
|
||
testImplementation "org.springframework.boot:spring-boot-starter-test" | ||
} | ||
} |
Binary file not shown.
This file contains 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,6 @@ | ||
#Wed Nov 29 19:28:55 KST 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.