ci: 添加前端与后端 Gitea Actions 持续集成工作流

This commit is contained in:
hhs
2026-06-12 23:39:42 +08:00
parent 14550d3aa2
commit 0304c1d27f
2 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
name: Frontend CI
on:
push:
branches: [develop, main]
paths: [frontend/**]
pull_request:
branches: [develop, main]
paths: [frontend/**]
jobs:
ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Type check & Build
run: npm run build