From 41480b11479ee1b0e55d1042f001a9d8bdf2e39b Mon Sep 17 00:00:00 2001 From: David Bernard Date: Tue, 30 Jan 2024 21:49:04 +0100 Subject: [PATCH] ci: run tests and fix clippy call - clippy & tests need git submodules content Signed-off-by: David Bernard --- .github/workflows/linter.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 6dbd883..8799abf 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -34,19 +34,23 @@ jobs: uses: wagoid/commitlint-github-action@v5.4.5 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: @@ -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 }}