Skip to content

chore(deps): update taiki-e/install-action action to v2.86.6 #903

chore(deps): update taiki-e/install-action action to v2.86.6

chore(deps): update taiki-e/install-action action to v2.86.6 #903

Workflow file for this run

name: "lint"
permissions: {}
on:
pull_request:
env:
RUSTFLAGS: -Dwarnings
jobs:
cargo-fmt:
name: "cargo fmt"
permissions:
contents: read
runs-on: ubuntu-24.04
steps:
- uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- id: toolchain
uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # doesn't have usual versioned releases/tags
with:
toolchain: stable
components: rustfmt # minimal profile does not include it
- run: cargo +${{ steps.toolchain.outputs.name }} fmt --all --check
cargo-clippy:
name: "cargo clippy"
permissions:
contents: read
runs-on: ubuntu-24.04
steps:
- uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- id: toolchain
uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # doesn't have usual versioned releases/tags
with:
toolchain: stable
components: clippy # minimal profile does not include it
- uses: ./.github/actions/setup-libmagic
- run: cargo +${{ steps.toolchain.outputs.name }} clippy --all-targets --all-features
cargo-rustdoc-clippy:
name: "cargo rustdoc-clippy"
permissions:
contents: read
runs-on: ubuntu-24.04
steps:
- uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- id: toolchain
uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # doesn't have usual versioned releases/tags
with:
toolchain: nightly
components: clippy # minimal profile does not include it
- uses: ./.github/actions/setup-libmagic
# dependency of cargo-rustdoc-clippy
- run: |
sudo apt-get update
sudo apt-get install zsh
# https://github.com/rust-lang/rust/issues/56232#issuecomment-1248359946
- run: |
curl --output ~/.cargo/bin/cargo-rustdoc-clippy https://raw.githubusercontent.com/Nemo157/dotfiles/f48d173c0f2cdc8537eccdf44412639127a822e4/packages/cargo-rustdoc-clippy.sh
echo '#!/usr/bin/env zsh' | cat - ~/.cargo/bin/cargo-rustdoc-clippy > temp && mv temp ~/.cargo/bin/cargo-rustdoc-clippy
sed -i 's/nocapture/no-capture/g' ~/.cargo/bin/cargo-rustdoc-clippy
chmod +x ~/.cargo/bin/cargo-rustdoc-clippy
- run: cargo +${{ steps.toolchain.outputs.name }} rustdoc-clippy --all-features