develop #7

Merged
huanghaosheng merged 11 commits from develop into main 2026-06-13 10:08:12 +08:00
2 changed files with 67 additions and 0 deletions
Showing only changes of commit 91cb12a47f - Show all commits

View File

@@ -0,0 +1,34 @@
name: Backend CI
on:
push:
branches: [develop, main]
paths: [backend/**]
pull_request:
branches: [develop, main]
paths: [backend/**]
jobs:
ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Download dependencies
run: go mod download
- name: Vet
run: go vet ./...
- name: Build
run: go build ./cmd/server
- name: Test
run: go test ./...

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