ci: dispatch stratum main updates to sv2-apps #128
Workflow file for this run
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: | |
| branches: | |
| - main | |
| jobs: | |
| clippy-check: | |
| name: clippy lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust (1.89) + Clippy | |
| uses: dtolnay/rust-toolchain@1.89 | |
| id: toolchain | |
| with: | |
| components: clippy | |
| # NOTE: A repo-local `rust-toolchain.toml` is still respected by rustup. | |
| # `dtolnay/rust-toolchain` installs the requested toolchain but does not | |
| # automatically override it. | |
| - name: Override toolchain | |
| run: rustup override set ${{ steps.toolchain.outputs.name }} | |
| - name: Run Clippy | |
| run: cargo clippy --all-features -- -D warnings | |
| fmt: | |
| name: fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install nightly Rust + rustfmt | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt | |
| - name: Run rustfmt | |
| run: cargo fmt --all -- --check --verbose | |
| machete: | |
| name: Cargo Machete | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Run cargo-machete | |
| uses: bnjbvr/cargo-machete@main |