fix: 修正 Gitea Actions 工作流目录名为复数形式 workflows
This commit is contained in:
33
.gitea/workflows/backend-ci.yml
Normal file
33
.gitea/workflows/backend-ci.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Backend CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: [backend/**]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths: [backend/**]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: aliyun
|
||||
container: golang:1.23-bookworm
|
||||
env:
|
||||
GOPROXY: https://goproxy.cn,direct
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
steps:
|
||||
- uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Build
|
||||
run: go build ./cmd/server
|
||||
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
30
.gitea/workflows/frontend-ci.yml
Normal file
30
.gitea/workflows/frontend-ci.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Frontend CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: [frontend/**]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths: [frontend/**]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: aliyun
|
||||
container: node:22-bookworm
|
||||
env:
|
||||
npm_config_registry: https://registry.npmmirror.com
|
||||
defaults:
|
||||
run:
|
||||
working-directory: frontend
|
||||
steps:
|
||||
- uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4
|
||||
|
||||
- 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