Record the run-session-as-server direction in CLI_DESIGN #111
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: sweetpad-lib | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "sweetpad-lib/**" | |
| - "sweetpad-core/**" | |
| - "sweetpad-cli/**" | |
| - "sweetpad-vscode/native/**" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - "rust-toolchain.toml" | |
| - ".github/workflows/sweetpad-lib.yaml" | |
| pull_request: | |
| paths: | |
| - "sweetpad-lib/**" | |
| - "sweetpad-core/**" | |
| - "sweetpad-cli/**" | |
| - "sweetpad-vscode/native/**" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - "rust-toolchain.toml" | |
| - ".github/workflows/sweetpad-lib.yaml" | |
| # The fast nets resolve against the committed `sweetpad-lib/xcspec-cache/`, so | |
| # they need no Xcode and form the always-on regression gate — the BSP | |
| # arg-invariant linter, the compiler-args/settings oracles, and the parsers. | |
| # | |
| # The heavy tiers are NOT run here: they need a real Xcode 26.5 plus the | |
| # gitignored OSS corpus, so they're run locally / nightly off-CI — | |
| # BSP_CORPUS=1 cargo test -p sweetpad-core --test bsp_corpus_completion | |
| # BSP_LIVE_DIFF=1 cargo test -p sweetpad-core --test showbuildsettings_live_diff | |
| # python3 sweetpad-lib/scripts/21_mutation_audit.py [--e2e] | |
| jobs: | |
| check: | |
| name: fmt · clippy · test | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust toolchain | |
| # Installs the channel + components pinned in rust-toolchain.toml. | |
| run: rustup show | |
| - name: Cache cargo build | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Format | |
| run: cargo fmt --all --check | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: Test | |
| run: cargo test --workspace |