ci: CN-friendly workflow (daocloud node24 container + npmmirror, no setup-node)
ci / test (push) Failing after 1s
ci / test (push) Failing after 1s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user