Public Release: 2026-03-27 00:12 #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI — Lint, Test, Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| NODE_VERSION: '20' | |
| RUST_VERSION: 'stable' | |
| permissions: | |
| contents: read | |
| jobs: | |
| # ────────────────────────────────────── | |
| # Frontend: TypeScript + Vitest | |
| # ────────────────────────────────────── | |
| frontend: | |
| name: Frontend (Node ${{ matrix.node }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [20] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: TypeScript Check | |
| run: npx tsc --noEmit | |
| - name: Lint | |
| run: npm run lint | |
| - name: Run Tests | |
| run: npx vitest run --reporter=verbose | |
| - name: Build Frontend | |
| run: npm run build | |
| # ────────────────────────────────────── | |
| # Backend: Rust (cargo check + test) | |
| # ────────────────────────────────────── | |
| backend: | |
| name: Backend (Rust ${{ matrix.rust }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: [stable] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Protoc | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y protobuf-compiler libprotobuf-dev | |
| echo "PROTOC=/usr/bin/protoc" >> $GITHUB_ENV | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: server-rs | |
| - name: Cargo Check | |
| working-directory: server-rs | |
| run: cargo check | |
| - name: Cargo Test | |
| working-directory: server-rs | |
| run: cargo test | |
| - name: Cargo Clippy | |
| working-directory: server-rs | |
| run: cargo clippy -- -D warnings |