Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Hergy Fongue <hergy.fongue@ext.markant.com>
  • Loading branch information
Hergy Fongue committed Jan 18, 2024
1 parent b55e138 commit 0b5f416
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ on:
commit_sha:
description: Git commit sha, on which, to run this workflow

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
# cancel-in-progress: true

jobs:
lint_commits:
Expand All @@ -48,25 +48,33 @@ jobs:
lint_projects:
- cargo_fmt_check
- cargo_clippy
- cargo_deny
# - cargo_deny
- cargo_toml_files
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install cargo-deny
run: cargo install --locked cargo-deny && cargo deny init && cargo deny check || true
profile: minimal
toolchain: nightly
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
uses: actions/cache@v3
continue-on-error: false
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
path: |
~/.cargo/bin
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-sdk-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sdk-rust-
- name: Check cargo version
run: cargo --version
- name: Format
run: cargo fmt --all -- --check
- name: Run lint ${{ matrix.lint_projects }}
run: make -f Makefile lint_${{ matrix.lint_projects }}

0 comments on commit 0b5f416

Please sign in to comment.