diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 57ae4ff..3c3c960 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,16 +4,17 @@ on: [push, pull_request] jobs: test: runs-on: ubuntu-latest + # 作业容器直接用国内镜像的 node:24(node:sqlite 需要 >= 22.5) + container: + image: docker.m.daocloud.io/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 - - 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: 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