Skip to content

Update CI workflow names and triggers and pin actions to specific SHAs #189

Update CI workflow names and triggers and pin actions to specific SHAs

Update CI workflow names and triggers and pin actions to specific SHAs #189

Workflow file for this run

name: Lint
on:
pull_request:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/lint.yml'
push:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/actions/install-tpm2-tss/**'
- '.github/workflows/lint.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
toolchain: stable
components: clippy
- uses: ./.github/actions/install-tpm2-tss
# - run: sudo apt-get update && sudo apt-get install -y libtss2-dev pkg-config
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings