Repository navigation
Test unattended escalations and record phase 5 in the plan #44
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint-test: | |
| name: Lint and test (Linux) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # crates/llm-provider-kit is a public submodule. | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Install test dependencies | |
| run: sudo apt-get update && sudo apt-get install -y ripgrep | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Clippy (deny warnings) | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: Run tests | |
| run: cargo test --workspace | |
| # The release workflow already builds Windows binaries, so keep Windows | |
| # compiling on every PR. Tests are only run on Linux for now. | |
| build-windows: | |
| name: Build (Windows) | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # crates/llm-provider-kit is a public submodule. | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Build workspace (including tests) | |
| run: cargo build --workspace --all-targets |