Files
sb-front/.gitea/workflows/ci.yaml
T
ByungCheol c9b58f4ad0
CI / build (push) Successful in 38s
ci: main 푸시 시 CI 중복 실행 제거(Deploy만) — 배포 시간 단축
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 09:22:48 +09:00

46 lines
1.0 KiB
YAML

name: CI
on:
# main 은 Deploy 워크플로가 테스트+빌드를 수행하므로 CI 중복 실행 제외(배포 시간 단축).
push:
branches: [dev]
pull_request:
branches: [main, dev]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
# 린트는 결과만 보고하고 빌드를 막지 않음 (--fix 없이 검사만)
- name: Lint (report only)
continue-on-error: true
run: |
npx oxlint .
npx eslint .
# 단위/컴포넌트 테스트 — 실패 시 빌드/배포 차단(게이트)
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Upload build output
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
retention-days: 7