Skip to content

Commit

Permalink
ci: run tests and fix clippy call
Browse files Browse the repository at this point in the history
- clippy & tests need git submodules content

Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Jan 30, 2024
1 parent a7ca3cc commit 41480b1
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,23 @@ jobs:
uses: wagoid/[email protected]

lint_check:
name: Rust - lint_${{ matrix.lint_projects }}
name: Rust - ${{ matrix.tasks }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
lint_projects:
- cargo_fmt_check
- cargo_toml_fmt_files
- cargo_clippy
- cargo_deny
tasks:
- lint_cargo_fmt_check
- lint_cargo_toml_fmt_files
- lint_cargo_clippy
- lint_cargo_deny
- test
steps:
- name: Run the checkout command
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "true"
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -66,8 +70,8 @@ jobs:
~/.cargo/git/db/
key: ${{ runner.os }}-sdk-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sdk-rust-
${{ runner.os }}-sdk-rust-
- name: Check cargo version
run: cargo --version
- name: Run lint ${{ matrix.lint_projects }}
run: make -f Makefile lint_${{ matrix.lint_projects }}
- name: Run lint ${{ matrix.tasks }}
run: make -f Makefile ${{ matrix.tasks }}

0 comments on commit 41480b1

Please sign in to comment.