From 34fd0e616cd6261f231a0b584a3864c3058e54b1 Mon Sep 17 00:00:00 2001 From: Ubugeeei Date: Sun, 24 May 2026 02:22:36 +0900 Subject: [PATCH] ci(node): run prettier --check and smoke:backend Closes #52 and #53. - Add npm run format:check to the node job so prettier drift in TS/MD/Vue/etc. fails the build. - Add the smoke-backend script after the docs build so we exercise the real HTTP boundary (healthz + token-protected /reset) on every PR. Reuses the existing cargo cache. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09fef91..912e755 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,9 @@ jobs: - name: Install docs dependencies run: npm --prefix docs ci + - name: Format check + run: npm run format:check + - name: Typecheck run: npm run typecheck @@ -50,6 +53,21 @@ jobs: - name: Build docs run: npm run docs:build + - name: Setup Rust (for smoke:backend) + uses: dtolnay/rust-toolchain@stable + + - name: Cache Cargo (backend) + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + backend/target + key: ${{ runner.os }}-cargo-backend-${{ hashFiles('backend/Cargo.lock') }} + + - name: Backend smoke test + run: npm run smoke:backend + rust: name: Rust check runs-on: ubuntu-latest