build(deps): bump the cargo-dependencies group across 1 directory with 26 updates #232
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] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ci: | |
| name: Build, lint, and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - name: Install Rust toolchain | |
| id: rust | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| rustup toolchain install --profile minimal --component clippy,rustfmt | |
| echo "version=$(rustc --version | awk '{print $2}')" >> "$GITHUB_OUTPUT" | |
| rustc --version | |
| cargo --version | |
| - name: Install protoc | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| - name: Cache cargo registry, git deps, target, and installed bins | |
| id: cache-cargo | |
| uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| ~/.cargo/bin | |
| target | |
| key: ${{ runner.os }}-cargo-${{ steps.rust.outputs.version }}-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-${{ steps.rust.outputs.version }}- | |
| ${{ runner.os }}-cargo- | |
| - name: Install cargo-deny | |
| if: ${{ steps.cache-cargo.outputs.cache-hit != 'true' }} | |
| run: cargo install --locked cargo-deny@0.19.9 | |
| - name: Format check | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets --locked -- -D warnings | |
| - name: Check facade integrity | |
| run: ./scripts/check-facades.sh | |
| - name: Cargo deny | |
| run: cargo deny check bans advisories | |
| - name: Test | |
| run: cargo test --workspace --locked |