Skip to content

πŸ› [Fix] μ½”λ“œ 였λ₯˜ μˆ˜μ • 및 μŠ€μ›¨κ±° Tag μΆ”κ°€ #36

πŸ› [Fix] μ½”λ“œ 였λ₯˜ μˆ˜μ • 및 μŠ€μ›¨κ±° Tag μΆ”κ°€

πŸ› [Fix] μ½”λ“œ 였λ₯˜ μˆ˜μ • 및 μŠ€μ›¨κ±° Tag μΆ”κ°€ #36

Workflow file for this run

name: CI Pipeline
on:
pull_request:
branches:
- develop # develop 브랜치둜 PR이 올라온 경우둜 μ œν•œ
types: [opened, synchronize, reopened]
jobs:
pr_merge_and_build:
runs-on: ubuntu-latest
steps:
- name: Set Git identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "CI Runner"
# PR 브랜치 체크아웃
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
# Java ν™˜κ²½μ„€μ •
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
# Gradle κΆŒν•œλΆ€μ—¬
- name: Grant execute permission fom gradlew
run: chmod +x gradlew
# ν˜„μž¬ 브랜치만 λΉŒλ“œ ν…ŒμŠ€νŠΈ
- name: Build jar
run: ./gradlew clean compileJava -x test
# ν˜„μž¬ 브랜치 + develop 병합 ν…ŒμŠ€νŠΈ
- name: Test merge with develop branch
run: |
git fetch origin main
git merge origin/main --no-commit --no-ff || { echo "ν˜„μž¬ λΈŒλžœμΉ˜λŠ” develop λΈŒλžœμΉ˜μ™€ λ³‘ν•©μ‹œ conflictκ°€ λ°œμƒν•©λ‹ˆλ‹€."; exit 1; }
# 병합 ν›„ μ΅œμ’… λΉŒλ“œ ν…ŒμŠ€νŠΈ
- name: Build jar
run: ./gradlew clean compileJava -x test