chore(deps): update rust crate toml to v0.8.13 #38
This file contains 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 | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
CLICOLOR: 1 | |
jobs: | |
smoke: | |
name: Quick Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Default features | |
run: cargo check --workspace --all-targets | |
rustfmt: | |
name: rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
clippy: | |
name: clippy | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write # to upload sarif results | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install SARIF tools | |
run: cargo install clippy-sarif sarif-fmt | |
- name: Check | |
run: > | |
cargo clippy --workspace --all-features --all-targets --message-format=json -- -D warnings --allow deprecated | |
| clippy-sarif | |
| tee clippy-results.sarif | |
| sarif-fmt | |
continue-on-error: true | |
- name: Upload | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: clippy-results.sarif | |
wait-for-processing: true | |
- name: Report status | |
run: cargo clippy --workspace --all-features --all-targets -- -D warnings --allow deprecated |