ci: 添加前端与后端 Gitea Actions 持续集成工作流
This commit is contained in:
33
.gitea/workflow/frontend-ci.yml
Normal file
33
.gitea/workflow/frontend-ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user