Skip to content

chore : API setting #11

chore : API setting

chore : API setting #11

Workflow file for this run

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