diff --git a/staged/.github/workflows/ci.yml b/.github/workflows/staged-ci.yml similarity index 80% rename from staged/.github/workflows/ci.yml rename to .github/workflows/staged-ci.yml index 066649f..b7e9062 100644 --- a/staged/.github/workflows/ci.yml +++ b/.github/workflows/staged-ci.yml @@ -1,14 +1,22 @@ -name: CI +name: Staged CI on: pull_request: branches: [main] + paths: + - "staged/**" push: branches: [main] + paths: + - "staged/**" env: CARGO_TERM_COLOR: always +defaults: + run: + working-directory: staged + jobs: check: name: Check @@ -18,11 +26,13 @@ jobs: # Install hermit (manages node, rust, just) - uses: cashapp/activate-hermit@v1 + with: + working-directory: staged # Cache Cargo dependencies - uses: Swatinem/rust-cache@v2 with: - workspaces: src-tauri + workspaces: staged/src-tauri # Install system dependencies for Tauri (Linux) - name: Install Tauri dependencies (Linux)