From 3aae32691443b022df6683cc9c791f2fdbd5fd44 Mon Sep 17 00:00:00 2001 From: leokun Date: Fri, 4 Sep 2026 16:13:53 +0800 Subject: [PATCH] ci: check frontend and desktop platforms --- .github/workflows/ci.yml | 51 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d839e05..6e73f08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ concurrency: jobs: rust: - name: Rust + name: Rust (Linux) runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -35,11 +35,54 @@ jobs: with: workspaces: ". -> target" - - name: cargo fmt --all -- --check + - name: Check formatting run: cargo fmt --all -- --check - - name: cargo clippy --workspace --all-targets -- -D warnings + - name: Run Clippy run: cargo clippy --workspace --all-targets -- -D warnings - - name: cargo test --workspace --all-targets + - name: Run tests run: cargo test --workspace --all-targets + + frontend: + name: Frontend + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: apps/desktop/package-lock.json + + - name: Install dependencies + working-directory: apps/desktop + run: npm ci + + - name: Check types and production build + working-directory: apps/desktop + run: npm run check + + desktop-rust: + name: Desktop Rust (${{ matrix.os }}) + strategy: + fail-fast: false + matrix: + os: + - windows-latest + - macos-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + + - uses: Swatinem/rust-cache@v2 + with: + workspaces: ". -> target" + + - name: Run platform Clippy + run: cargo clippy --package cursor-byok-desktop --all-targets -- -D warnings