v0.6.1 #262
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: Quick Check | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| quick-check: | |
| name: Format and Clippy Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout codex-acp | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/[email protected] | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-quick-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-quick-cargo-registry- | |
| - name: Cache cargo index | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/git | |
| key: ${{ runner.os }}-quick-cargo-git-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-quick-cargo-git- | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy on all targets | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Run clippy on tests | |
| run: cargo clippy --tests --all-features -- -D warnings |