-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 956 Bytes
/
ci.yml
File metadata and controls
45 lines (35 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI/CD Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: 코드 체크아웃
uses: actions/checkout@v4
- name: JDK 21 설정
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Maven Wrapper 실행 권한 부여
run: chmod +x ./mvnw
- name: 컴파일 검증
run: ./mvnw clean compile
- name: Checkstyle 검사
run: ./mvnw checkstyle:check
continue-on-error: true
- name: 테스트 실행
run: ./mvnw test
- name: JAR 빌드
run: ./mvnw package -DskipTests
- name: 빌드 결과 업로드
uses: actions/upload-artifact@v4
with:
name: autopublish-jar
path: target/*.jar
retention-days: 7