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/project setup #3

Merged
merged 4 commits into from
Oct 18, 2024
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
32 changes: 32 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# μ›Œν¬ν”Œλ‘œμ˜ 이름을 μ •μ˜ν•©λ‹ˆλ‹€.
name: build-test

on:
push:
branches:
- chore/project-setup

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches/modules-2/files-2.1
~/.gradle/wrapper/
key: gradle-cache-${{ runner.os }}-${{ hashFiles('build.gradle', 'settings.gradle', 'gradle-wrapper.properties') }}
restore-keys: |
gradle-cache-${{ runner.os }}-
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build and Test with Gradle
run: ./gradlew build
32 changes: 32 additions & 0 deletions .github/workflows/pr-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: pr-build-test

on:
pull_request:
branches:
- develop

jobs:
build:
if: github.head_ref == 'chore/project-setup' # μ†ŒμŠ€ λΈŒλžœμΉ˜κ°€ 'chore'인지 확인
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches/modules-2/files-2.1
~/.gradle/wrapper/
key: gradle-cache-${{ runner.os }}-${{ hashFiles('build.gradle', 'settings.gradle', 'gradle-wrapper.properties') }}
restore-keys: |
gradle-cache-${{ runner.os }}-
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build and Test with Gradle
run: ./gradlew build
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
19 changes: 19 additions & 0 deletions .gitmessage.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# --- 제λͺ© Type μ„€λͺ…---
# μ΅œλŒ€ 50자 μ΄ν•˜
# 제λͺ© 첫 κΈ€μžλ₯Ό λŒ€λ¬Έμžλ‘œ
# 제λͺ©μ€ λͺ…λ Ήλ¬ΈμœΌλ‘œ
# 제λͺ© 끝에 λ§ˆμΉ¨ν‘œ(.) κΈˆμ§€
# 제λͺ©κ³Ό 본문을 ν•œ 쀄 λ„μ›Œ λΆ„λ¦¬ν•˜κΈ°
#
# Feat: | μƒˆλ‘œμš΄ κΈ°λŠ₯ μΆ”κ°€ |
# Fix: | 버그 μˆ˜μ • |
# Docs | λ¬Έμ„œ μˆ˜μ •, Readme λ“± |
# Test: | ν…ŒμŠ€νŠΈ μ½”λ“œ μž‘μ„± 및 μΆ”κ°€ |
# Refactor: | μ½”λ“œ λ¦¬νŽ™ν† λ§ |
# Init: | ν”„λ‘œμ νŠΈ 초기 생성 |
# chore: | κΈ°λŠ₯ μΆ”κ°€, 버그 μˆ˜μ •κ³Ό 같은 μ£Όμš” 변경사항이 μ•„λ‹Œ μž‘λ‹€ν•œ μž‘μ—…μ„ 처리|
# -------------------
#
# body: μž‘μ—…λ‚΄μ—­μ— λŒ€ν•΄μ„œ μƒμ„Έν•˜κ²Œ 기술. 20 쀄 μ΄λ‚΄λ‘œ μž‘μ„±.
#
# footer: # 이슈번호
37 changes: 37 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.11-SNAPSHOT'
id 'io.spring.dependency-management' version '1.1.6'
}

group = 'spring'
version = '0.0.1-SNAPSHOT'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
maven { url 'https://repo.spring.io/snapshot' }
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

tasks.named('test') {
useJUnitPlatform()
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading