Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f6e565ffdc | |||
| ba5f71b716 |
+10
-10
@@ -21,7 +21,7 @@ jobs:
|
|||||||
# ── Job 1: Lint (shellcheck) ─────────────────────────────────────────────
|
# ── Job 1: Lint (shellcheck) ─────────────────────────────────────────────
|
||||||
lint:
|
lint:
|
||||||
name: Lint — shellcheck
|
name: Lint — shellcheck
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
# ── Job 2: OpenAPI Sync Check ────────────────────────────────────────────
|
# ── Job 2: OpenAPI Sync Check ────────────────────────────────────────────
|
||||||
openapi-check:
|
openapi-check:
|
||||||
name: OpenAPI Sync Check
|
name: OpenAPI Sync Check
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
# ── Job 3: Redline Word Scan (脱敏) ──────────────────────────────────────
|
# ── Job 3: Redline Word Scan (脱敏) ──────────────────────────────────────
|
||||||
redline-scan:
|
redline-scan:
|
||||||
name: Redline Scan — 脱敏 (UI 文案)
|
name: Redline Scan — 脱敏 (UI 文案)
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
# ── Job 4: Flutter 客户端(分析 + 单测/组件测试)────────────────────────
|
# ── Job 4: Flutter 客户端(分析 + 单测/组件测试)────────────────────────
|
||||||
flutter-client:
|
flutter-client:
|
||||||
name: Flutter — analyze + test
|
name: Flutter — analyze + test
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
# 规则与豁免见 ci/scan-portable-sql.sh 头注 + docs/dev-conventions.html 支柱 3。
|
# 规则与豁免见 ci/scan-portable-sql.sh 头注 + docs/dev-conventions.html 支柱 3。
|
||||||
portable-sql-scan:
|
portable-sql-scan:
|
||||||
name: Portable SQL — 可移植性 (mysql/sqlite)
|
name: Portable SQL — 可移植性 (mysql/sqlite)
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
# (改了 design/colors_and_type.css 没重生成,或手改了生成物)。
|
# (改了 design/colors_and_type.css 没重生成,或手改了生成物)。
|
||||||
codegen-drift:
|
codegen-drift:
|
||||||
name: Codegen Drift — token 生成物未漂移
|
name: Codegen Drift — token 生成物未漂移
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -140,7 +140,7 @@ jobs:
|
|||||||
# -tags integration(需 docker 起 mysql/redis),见 go-integration job。
|
# -tags integration(需 docker 起 mysql/redis),见 go-integration job。
|
||||||
go-server:
|
go-server:
|
||||||
name: Go — build + test
|
name: Go — build + test
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -166,7 +166,7 @@ jobs:
|
|||||||
# 详见 scripts/e2e-smoke.sh + server/test/e2e/。
|
# 详见 scripts/e2e-smoke.sh + server/test/e2e/。
|
||||||
e2e-smoke:
|
e2e-smoke:
|
||||||
name: E2E Smoke — L4 进程级端到端
|
name: E2E Smoke — L4 进程级端到端
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -190,7 +190,7 @@ jobs:
|
|||||||
# · -p 1 串行:一次只起一个 mysql 容器,避免并发把 Docker Desktop 压垮/端口资源争用。
|
# · -p 1 串行:一次只起一个 mysql 容器,避免并发把 Docker Desktop 压垮/端口资源争用。
|
||||||
go-integration:
|
go-integration:
|
||||||
name: Go — integration (mysql/redis testcontainers)
|
name: Go — integration (mysql/redis testcontainers)
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -205,7 +205,7 @@ jobs:
|
|||||||
# tablet/desktop-stats golden 与 stats-overhaul 工作区耦合,待其合并后并入本 job。
|
# tablet/desktop-stats golden 与 stats-overhaul 工作区耦合,待其合并后并入本 job。
|
||||||
golden:
|
golden:
|
||||||
name: Golden — 视觉回归 (components + auth)
|
name: Golden — 视觉回归 (components + auth)
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-server:
|
deploy-server:
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -12,22 +12,20 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-site:
|
deploy-site:
|
||||||
runs-on: nas
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Compile (Astro 官网, node:20 容器内构建)
|
# runner 镜像 catthehacker/ubuntu:act-latest 自带 node/npx,直接跑;
|
||||||
run: |
|
# 不用嵌套 docker run(job 容器内的 $PWD 在宿主上不存在,DinD 挂载会失败)。
|
||||||
docker run --rm -v "$PWD:/w" -w /w \
|
- name: Compile (Astro 官网)
|
||||||
-e SITE_URL=https://pangolin.yanmeiai.com \
|
env:
|
||||||
node:20 bash scripts/ci/compile-site.sh
|
SITE_URL: https://pangolin.yanmeiai.com
|
||||||
|
run: bash scripts/ci/compile-site.sh
|
||||||
|
|
||||||
- name: Deploy → Cloudflare Pages
|
- name: Deploy → Cloudflare Pages
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
run: |
|
run: bash scripts/ci/deploy-site.sh
|
||||||
docker run --rm -v "$PWD:/w" -w /w \
|
|
||||||
-e CLOUDFLARE_API_TOKEN -e CLOUDFLARE_ACCOUNT_ID \
|
|
||||||
node:20 bash scripts/ci/deploy-site.sh
|
|
||||||
|
|||||||
Reference in New Issue
Block a user