PR생성시 메이븐 컴파일 및 의존성 에러 체크 메인브랜치에 병합시 빌드 및 war를 깃티와 넥서스 레포지토리에 업로드
This commit is contained in:
30
.gitea/workflows/pr-ci.yml
Normal file
30
.gitea/workflows/pr-ci.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: PR-CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["master"]
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 8
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "8"
|
||||
|
||||
- name: Cache Maven repo
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: m2-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
m2-${{ runner.os }}-
|
||||
|
||||
- name: Maven Build (compile + dependency check)
|
||||
run: mvn -B clean package -DskipTests
|
||||
Reference in New Issue
Block a user