ci: add backend lint+build workflow for center and guild

This commit is contained in:
nav
2026-05-12 08:43:09 +00:00
parent ea32aeb819
commit 2871141d4c
2 changed files with 47 additions and 1 deletions

46
.github/workflows/backend-ci.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: backend-ci
on:
push:
branches: ["main"]
paths:
- "Fabric.Backend.Center/**"
- "Fabric.Backend.Guild/**"
- ".github/workflows/backend-ci.yml"
pull_request:
paths:
- "Fabric.Backend.Center/**"
- "Fabric.Backend.Guild/**"
- ".github/workflows/backend-ci.yml"
jobs:
verify:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
service:
- Fabric.Backend.Center
- Fabric.Backend.Guild
defaults:
run:
working-directory: ${{ matrix.service }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: ${{ matrix.service }}/package-lock.json
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build

View File

@@ -8,7 +8,7 @@
- [x] docker-composecenter/guild + mysql
- [x] 增加 `.env.example`Center/Guild
- [x] 增加统一 lint/format 配置eslint + prettier
- [ ] 增加基础 CIbuild + lint
- [x] 增加基础 CIbuild + lint
---