23 lines
583 B
YAML
23 lines
583 B
YAML
name: ci
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
|
|
# 前端依赖(tsc/vite);服务端零依赖不需要安装
|
|
- name: Install frontend deps
|
|
run: npm install --prefix app --no-audit --no-fund
|
|
|
|
- name: Static checks (syntax + tsc + build + tripwire)
|
|
run: node scripts/check.mjs
|
|
|
|
- name: Integration tests (seed/login/invite-CRUD/registration)
|
|
run: node scripts/test-integration.mjs
|