이 인스턴스는 Gitea → .gitlab-ci.yml 미사용. sb_bt 컨벤션 따라 .gitea/workflows/ci.yaml. 테스트는 H2 인메모리라 서비스 컨테이너 불필요. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
name: CI
|
||||
|
||||
# dev 브랜치 전용 CI (요청: dev 에만). 테스트는 인메모리 H2 라 서비스 컨테이너 불필요.
|
||||
on:
|
||||
push:
|
||||
branches: [dev]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '17'
|
||||
# cache 제거: Gitea 캐시 서버 미연결 시 'Save cache' 후처리가 수 분 hang → '가짜 실패' 유발(sb_bt 와 동일)
|
||||
|
||||
# clean build 는 test 태스크 포함(H2) — 단위테스트 실패 시 빌드 차단(게이트)
|
||||
- name: Build & Test
|
||||
run: |
|
||||
chmod +x ./gradlew
|
||||
./gradlew --no-daemon clean build
|
||||
|
||||
- name: Upload test report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: test-report
|
||||
path: build/reports/tests/test
|
||||
retention-days: 7
|
||||
|
||||
- name: Upload jar
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: app-jar
|
||||
path: build/libs/*.jar
|
||||
retention-days: 7
|
||||
Reference in New Issue
Block a user