24 lines
762 B
YAML
24 lines
762 B
YAML
name: ci
|
||
on: [push, pull_request]
|
||
|
||
jobs:
|
||
test:
|
||
runs-on: ubuntu-latest
|
||
# 作业容器直接用国内镜像的 node:24(node:sqlite 需要 >= 22.5)
|
||
container:
|
||
image: docker.1ms.run/library/node:24-bookworm
|
||
steps:
|
||
- name: Install git (checkout 依赖)
|
||
run: apt-get update -qq && apt-get install -y -qq git ca-certificates
|
||
|
||
- uses: actions/checkout@v4
|
||
|
||
- name: Install frontend deps (npmmirror)
|
||
run: npm install --prefix app --no-audit --no-fund --registry=https://registry.npmmirror.com
|
||
|
||
- 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
|