mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 01:25:12 +02:00
This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [Swatinem/rust-cache](https://redirect.github.com/Swatinem/rust-cache) | action | patch | `v2.9.1` → `v2.9.2` | | | [actions/upload-code-coverage](https://redirect.github.com/actions/upload-code-coverage) | action | patch | `v1.4.1` → `v1.4.2` | | | [crate-ci/typos](https://redirect.github.com/crate-ci/typos) | action | minor | `v1.48.0` → `v1.50.0` | | | [github/codeql-action](https://redirect.github.com/github/codeql-action) | action | patch | `v4.37.4` → `v4.37.9` | | | [taiki-e/install-action](https://redirect.github.com/taiki-e/install-action) | action | minor | `v2.85.5` → `v2.87.0` | `v2.87.2` (+1) | | [zizmorcore/zizmor-action](https://redirect.github.com/zizmorcore/zizmor-action) | action | patch | `v0.6.1` → `v0.6.2` | `v0.6.3` | --- ### Release Notes <details> <summary>Swatinem/rust-cache (Swatinem/rust-cache)</summary> ### [`v2.9.2`](https://redirect.github.com/Swatinem/rust-cache/releases/tag/v2.9.2) [Compare Source](https://redirect.github.com/Swatinem/rust-cache/compare/v2.9.1...v2.9.2) ##### What's Changed - Typofix by [@​23Skidoo](https://redirect.github.com/23Skidoo) in [#​316](https://redirect.github.com/Swatinem/rust-cache/pull/316) - fix: include target names in build/ and .fingerprint/ cleanup by [@​eitsupi](https://redirect.github.com/eitsupi) in [#​317](https://redirect.github.com/Swatinem/rust-cache/pull/317) - fix: include cdylib/rlib/dylib/staticlib targets in build and fingerprint cleanup by [@​eitsupi](https://redirect.github.com/eitsupi) in [#​320](https://redirect.github.com/Swatinem/rust-cache/pull/320) - Scan content of `$CARGO_HOME/bin` on restore instead of relying on `cargo install` metadata by [@​clechasseur](https://redirect.github.com/clechasseur) in [#​325](https://redirect.github.com/Swatinem/rust-cache/pull/325) - docs: Update checkout action version to latest by [@​sondrelg](https://redirect.github.com/sondrelg) in [#​345](https://redirect.github.com/Swatinem/rust-cache/pull/345) - Fix Windows cache path validation after Rollup migration by [@​eitsupi](https://redirect.github.com/eitsupi) in [#​355](https://redirect.github.com/Swatinem/rust-cache/pull/355) - fix: support Cargo V2 build dir layout by [@​claytonwramsey](https://redirect.github.com/claytonwramsey) in [#​371](https://redirect.github.com/Swatinem/rust-cache/pull/371) ##### New Contributors - [@​23Skidoo](https://redirect.github.com/23Skidoo) made their first contribution in [#​316](https://redirect.github.com/Swatinem/rust-cache/pull/316) - [@​eitsupi](https://redirect.github.com/eitsupi) made their first contribution in [#​317](https://redirect.github.com/Swatinem/rust-cache/pull/317) - [@​clechasseur](https://redirect.github.com/clechasseur) made their first contribution in [#​325](https://redirect.github.com/Swatinem/rust-cache/pull/325) - [@​sondrelg](https://redirect.github.com/sondrelg) made their first contribution in [#​345](https://redirect.github.com/Swatinem/rust-cache/pull/345) - [@​claytonwramsey](https://redirect.github.com/claytonwramsey) made their first contribution in [#​371](https://redirect.github.com/Swatinem/rust-cache/pull/371) **Full Changelog**: <https://github.com/Swatinem/rust-cache/compare/v2.9.1...v2.9.2> </details> <details> <summary>actions/upload-code-coverage (actions/upload-code-coverage)</summary> ### [`v1.4.2`](https://redirect.github.com/actions/upload-code-coverage/compare/v1.4.1...v1.4.2) [Compare Source](https://redirect.github.com/actions/upload-code-coverage/compare/v1.4.1...v1.4.2) </details> <details> <summary>crate-ci/typos (crate-ci/typos)</summary> ### [`v1.50.0`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.50.0) [Compare Source](https://redirect.github.com/crate-ci/typos/compare/v1.49.1...v1.50.0) #### \[1.50.0] - 2026-08-28 ##### Features - Updated the dictionary with the [August 2026](https://redirect.github.com/crate-ci/typos/issues/1587) changes ### [`v1.49.1`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.49.1) [Compare Source](https://redirect.github.com/crate-ci/typos/compare/v1.49.0...v1.49.1) #### \[1.49.1] - 2026-08-27 ##### Fixes - Don't correct the brand name `HashiCorp` ### [`v1.49.0`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.49.0) [Compare Source](https://redirect.github.com/crate-ci/typos/compare/v1.48.0...v1.49.0) #### \[1.49.0] - 2026-08-03 ##### Features - Updated the dictionary with the [July 2026](https://redirect.github.com/crate-ci/typos/issues/1573) changes </details> <details> <summary>github/codeql-action (github/codeql-action)</summary> ### [`v4.37.9`](https://redirect.github.com/github/codeql-action/releases/tag/v4.37.9) [Compare Source](https://redirect.github.com/github/codeql-action/compare/v4.37.8...v4.37.9) - Update default CodeQL bundle version to [2.26.4](https://redirect.github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.4). [#​4106](https://redirect.github.com/github/codeql-action/pull/4106) ### [`v4.37.8`](https://redirect.github.com/github/codeql-action/releases/tag/v4.37.8) [Compare Source](https://redirect.github.com/github/codeql-action/compare/v4.37.7...v4.37.8) No user facing changes. ### [`v4.37.7`](https://redirect.github.com/github/codeql-action/releases/tag/v4.37.7) [Compare Source](https://redirect.github.com/github/codeql-action/compare/v4.37.6...v4.37.7) - Update default CodeQL bundle version to [2.26.3](https://redirect.github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.3). [#​4085](https://redirect.github.com/github/codeql-action/pull/4085) ### [`v4.37.6`](https://redirect.github.com/github/codeql-action/releases/tag/v4.37.6) [Compare Source](https://redirect.github.com/github/codeql-action/compare/v4.37.5...v4.37.6) - Changed the default filepath for the new remote file address format that was introduced in CodeQL Action 4.37.0 / 3.37.0 to `.github/codeql-config.yml` to align it with the suggested path that is used elsewhere. [#​4070](https://redirect.github.com/github/codeql-action/pull/4070) ### [`v4.37.5`](https://redirect.github.com/github/codeql-action/releases/tag/v4.37.5) [Compare Source](https://redirect.github.com/github/codeql-action/compare/v4.37.4...v4.37.5) - Fixed a bug where a network error while streaming the download of the CodeQL bundle could terminate the `init` Action instead of falling back to downloading the bundle before extracting it. [#​4061](https://redirect.github.com/github/codeql-action/pull/4061) </details> <details> <summary>taiki-e/install-action (taiki-e/install-action)</summary> ### [`v2.87.0`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.87.0): 2.87.0 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.8...v2.87.0) - Support `kache`. ([#​1980](https://redirect.github.com/taiki-e/install-action/pull/1980), thanks [@​ChrisJr404](https://redirect.github.com/ChrisJr404)) - Update `vacuum@latest` to 0.30.1. - Update `uv@latest` to 0.12.6. - Update `mise@latest` to 2026.8.14. - Update `editorconfig-checker@latest` to 3.11.2. ### [`v2.86.8`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.8): 2.86.8 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.7...v2.86.8) - Update `wasmtime@latest` to 48.0.1. - Update `wasm-tools@latest` to 1.258.0. - Update `oxfmt@latest` to 1.80.0. - Update `mise@latest` to 2026.8.12. - Update `kingfisher@latest` to 2.0.0. - Update `cargo-zigbuild@latest` to 0.23.2. ### [`v2.86.7`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.7): 2.86.7 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.6...v2.86.7) - Update `tombi@latest` to 1.4.1. - Update `rafn@latest` to 0.1.5. - Update `cargo-binstall@latest` to 1.22.0. ### [`v2.86.6`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.6): 2.86.6 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.5...v2.86.6) - Update `dprint@latest` to 0.56.1. - Update `cargo-lambda@latest` to 1.9.2. - Update `biome@latest` to 2.5.10. ### [`v2.86.5`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.5): 2.86.5 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.4...v2.86.5) - Update `zola@latest` to 0.23.4. - Update `wasm-tools@latest` to 1.257.1. - Update `protoc@latest` to 3.36.0. - Update `mise@latest` to 2026.8.10. - Update `cargo-dinghy@latest` to 0.8.6. - Update `wasmtime@latest` to 48.0.0. ### [`v2.86.4`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.4): 2.86.4 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.3...v2.86.4) - Update `oxfmt@latest` to 1.79.0. - Update `mise@latest` to 2026.8.8. - Update `martin@latest` to 1.14.0. - Update `dprint@latest` to 0.56.0. - Update `cargo-about@latest` to 0.9.2. - Update `biome@latest` to 2.5.9. ### [`v2.86.3`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.3): 2.86.3 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.2...v2.86.3) - Update `prek@latest` to 0.4.14. - Update `osv-scanner@latest` to 2.5.1. - Update `cargo-llvm-cov@latest` to 0.9.0. ### [`v2.86.2`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.2): 2.86.2 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.1...v2.86.2) - Update `uv@latest` to 0.12.5. - Update `mise@latest` to 2026.8.6. - Update `cargo-tarpaulin@latest` to 0.37.2. ### [`v2.86.1`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.1): 2.86.1 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.0...v2.86.1) - Fix an issue where `oxfmt` was accidentally installed as `oxfmt-{target}{exe}`. ([#​1969](https://redirect.github.com/taiki-e/install-action/pull/1969)) ### [`v2.86.0`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.0): 2.86.0 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.14...v2.86.0) - Support `oxfmt`. ([#​1967](https://redirect.github.com/taiki-e/install-action/pull/1967), thanks [@​rami3l](https://redirect.github.com/rami3l)) ### [`v2.85.14`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.14): 2.85.14 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.13...v2.85.14) - Update `uv@latest` to 0.12.4. - Update `trivy@latest` to 0.74.0. - Update `tombi@latest` to 1.4.0. - Update `mdbook-mermaid@latest` to 0.17.1. - Update `cargo-xwin@latest` to 0.23.1. ### [`v2.85.13`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.13): 2.85.13 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.12...v2.85.13) - Update `tombi@latest` to 1.3.3. - Update `mise@latest` to 2026.8.5. - Update `kingfisher@latest` to 1.113.0. - Update `cargo-shear@latest` to 1.13.4. - Update `bpf-linker@latest` to 0.11.0. ### [`v2.85.12`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.12): 2.85.12 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.11...v2.85.12) - Update `zola@latest` to 0.23.3. - Update `wasm-tools@latest` to 1.256.0. - Update `tombi@latest` to 1.2.10. - Update `syft@latest` to 1.51.0. - Update `prek@latest` to 0.4.13. - Update `mise@latest` to 2026.8.4. - Update `editorconfig-checker@latest` to 3.11.1. - Update `cargo-tarpaulin@latest` to 0.37.1. - Update `cargo-rdme@latest` to 2.2.1. - Update `biome@latest` to 2.5.8. ### [`v2.85.11`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.11): 2.85.11 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.10...v2.85.11) - Update `zola@latest` to 0.23.2. - Update `wasm-bindgen@latest` to 0.2.127. - Update `uv@latest` to 0.12.3. - Update `osv-scanner@latest` to 2.5.0. - Update `mise@latest` to 2026.8.3. - Update `kingfisher@latest` to 1.112.0. - Update `editorconfig-checker@latest` to 3.10.0. ### [`v2.85.10`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.10): 2.85.10 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.9...v2.85.10) - Update `uv@latest` to 0.12.2. - Update `tombi@latest` to 1.2.7. - Update `cosign@latest` to 3.1.3. - Update `coreutils@latest` to 0.10.0. - Update `cargo-rdme@latest` to 2.2.0. - Update `cargo-crap@latest` to 0.4.3. ### [`v2.85.9`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.9): 2.85.9 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.8...v2.85.9) - Update `zola@latest` to 0.23.1. - Update `wild@latest` to 0.10.0. - Update `mise@latest` to 2026.8.2. - Update `just@latest` to 1.58.0. - Update `jaq@latest` to 3.1.1. - Update `cargo-nextest@latest` to 0.9.143. - Update `cargo-crap@latest` to 0.4.2. - Update `biome@latest` to 2.5.7. ### [`v2.85.8`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.8): 2.85.8 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.7...v2.85.8) - Update `zizmor@latest` to 1.29.0. - Update `typos@latest` to 1.49.0. - Update `trivy@latest` to 0.73.0. - Update `tombi@latest` to 1.2.6. - Update `prek@latest` to 0.4.12. - Update `mise@latest` to 2026.8.1. - Update `convco@latest` to 0.7.1. - Update `cargo-semver-checks@latest` to 0.50.0. - Update `cargo-crap@latest` to 0.4.1. ### [`v2.85.7`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.7): 2.85.7 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.6...v2.85.7) - Update `wasmtime@latest` to 47.0.3. - Update `uv@latest` to 0.12.1. - Update `rclone@latest` to 1.75.0. - Update `kingfisher@latest` to 1.110.0. ### [`v2.85.6`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.85.6): 2.85.6 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.85.5...v2.85.6) - Update `wasm-tools@latest` to 1.255.0. - Update `tombi@latest` to 1.2.5. - Update `mise@latest` to 2026.7.18. - Update `cargo-neat@latest` to 0.5.3. - Update `cargo-crap@latest` to 0.4.0. </details> <details> <summary>zizmorcore/zizmor-action (zizmorcore/zizmor-action)</summary> ### [`v0.6.2`](https://redirect.github.com/zizmorcore/zizmor-action/releases/tag/v0.6.2) [Compare Source](https://redirect.github.com/zizmorcore/zizmor-action/compare/v0.6.1...v0.6.2) zizmor 1.29.0 is now the default version. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "before 5am on the first day of the month" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/epage/_rust). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC40OS4wIiwidXBkYXRlZEluVmVyIjoiNDQuNDkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
208 lines
7.1 KiB
YAML
208 lines
7.1 KiB
YAML
name: CI
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
CARGO_TERM_COLOR: always
|
|
CLICOLOR: 1
|
|
CARGO_INCREMENTAL: 0
|
|
RUST_TOOLCHAIN_STABLE: "1.98" # STABLE
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ci:
|
|
permissions:
|
|
contents: none
|
|
name: CI
|
|
needs: [test, msrv, lockfile, docs, rustfmt, clippy, minimal-versions]
|
|
runs-on: ubuntu-latest
|
|
if: "always()"
|
|
steps:
|
|
- name: Failed
|
|
run: exit 1
|
|
if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')"
|
|
test:
|
|
name: Test
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
|
rust: ["stable"]
|
|
continue-on-error: ${{ matrix.rust != 'stable' }}
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
# Reduce amount of data cached
|
|
CARGO_PROFILE_DEV_DEBUG: line-tables-only
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Rust
|
|
run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
|
|
- name: Initialize cache
|
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
- name: Install cargo-hack
|
|
uses: taiki-e/install-action@37f7c5781271959fb65b6b35224e28652ff2b63d # v2.87.0
|
|
with:
|
|
tool: cargo-hack
|
|
- name: Build
|
|
run: cargo test --workspace --no-run
|
|
- name: Test
|
|
run: cargo hack test --each-feature --workspace
|
|
msrv:
|
|
name: "Check MSRV"
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-latest"]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Rust
|
|
run: rustup update --no-self-update stable && rustup default stable
|
|
- name: Initialize cache
|
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
- name: Install cargo-hack
|
|
uses: taiki-e/install-action@37f7c5781271959fb65b6b35224e28652ff2b63d # v2.87.0
|
|
with:
|
|
tool: cargo-hack
|
|
- name: Default features
|
|
run: cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going
|
|
minimal-versions:
|
|
name: Minimal versions
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-latest"]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install stable Rust
|
|
run: rustup update --no-self-update stable && rustup default stable
|
|
- name: Install nightly Rust
|
|
run: rustup update --no-self-update nightly && rustup default nightly
|
|
- name: Downgrade dependencies to minimal versions
|
|
run: cargo +nightly generate-lockfile -Z minimal-versions
|
|
- name: Compile with minimal versions
|
|
run: cargo +stable check --workspace --all-features --locked --keep-going
|
|
lockfile:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Rust
|
|
run: rustup update --no-self-update stable && rustup default stable
|
|
- name: Initialize cache
|
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
- name: "Is lockfile updated?"
|
|
run: cargo update --workspace --locked
|
|
docs:
|
|
name: Docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Rust
|
|
run: rustup update --no-self-update $RUST_TOOLCHAIN_STABLE && rustup default $RUST_TOOLCHAIN_STABLE
|
|
- name: Initialize cache
|
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
- name: Check documentation
|
|
env:
|
|
CARGO_BUILD_WARNINGS: deny
|
|
run: cargo doc --workspace --all-features --no-deps --document-private-items --keep-going
|
|
rustfmt:
|
|
name: rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Rust
|
|
run: rustup update --no-self-update $RUST_TOOLCHAIN_STABLE && rustup default $RUST_TOOLCHAIN_STABLE
|
|
- name: Install rustfmt
|
|
run: rustup component add rustfmt
|
|
- name: Initialize cache
|
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
- name: Check formatting
|
|
run: cargo fmt --check
|
|
clippy:
|
|
name: clippy
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write # to upload sarif results
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Rust
|
|
run: rustup update --no-self-update $RUST_TOOLCHAIN_STABLE && rustup default $RUST_TOOLCHAIN_STABLE
|
|
- name: Install clippy
|
|
run: rustup component add clippy
|
|
- name: Initialize cache
|
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
- name: Install SARIF tools
|
|
run: cargo install clippy-sarif --locked
|
|
- name: Install SARIF tools
|
|
run: cargo install sarif-fmt --locked
|
|
- name: Check
|
|
run: >
|
|
cargo clippy --workspace --all-features --all-targets --message-format=json
|
|
| clippy-sarif
|
|
| tee clippy-results.sarif
|
|
| sarif-fmt
|
|
continue-on-error: true
|
|
- name: Upload
|
|
uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
|
|
with:
|
|
sarif_file: clippy-results.sarif
|
|
wait-for-processing: true
|
|
- name: Report status
|
|
env:
|
|
CARGO_BUILD_WARNINGS: deny
|
|
run: cargo clippy --workspace --all-features --all-targets --keep-going -- --allow deprecated --allow renamed_and_removed_lints
|
|
coverage:
|
|
name: Coverage
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
code-quality: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install Rust
|
|
run: rustup update --no-self-update stable && rustup default stable
|
|
- name: Initialize cache
|
|
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
- name: Install cargo-tarpaulin
|
|
run: cargo install cargo-tarpaulin
|
|
- name: Gather coverage
|
|
run: cargo tarpaulin --out xml
|
|
- name: Upload coverage report
|
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
|
uses: actions/upload-code-coverage@d8e329117199404bba6fc81efe8093dc7c015e34 # v1.4.2
|
|
with:
|
|
file: cobertura.xml
|
|
language: Rust
|