From 79988301cdbd6a8c11865b994a059b7d0348e7ae Mon Sep 17 00:00:00 2001 From: Omri SirComp Date: Wed, 20 May 2026 21:26:31 +0300 Subject: [PATCH] ci: add explicit lint check --- .github/workflows/ecdysis.yml | 9 +++++++++ Makefile | 6 +++++- integration_tests/Makefile | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ecdysis.yml b/.github/workflows/ecdysis.yml index e16279d..b381b2b 100644 --- a/.github/workflows/ecdysis.yml +++ b/.github/workflows/ecdysis.yml @@ -34,6 +34,15 @@ jobs: uses: actions/checkout@v4 - name: Build ecdysis run: make build + lint: + needs: skip-duplicate-jobs + if: needs.skip-duplicate-jobs.outputs.should_skip != 'true' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Check formatting and Clippy warnings + run: make lint test: needs: skip-duplicate-jobs if: needs.skip-duplicate-jobs.outputs.should_skip != 'true' diff --git a/Makefile b/Makefile index 1629dd9..d80e2bc 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,10 @@ build: $(CARGO) build .PHONY: tests -tests: fmt-check clippy clippy-tests test doc-private +tests: lint test doc-private + +.PHONY: lint +lint: fmt-check clippy clippy-tests .PHONY: install-cargo-tools install-cargo-tools: @@ -20,6 +23,7 @@ fmt-check: install-cargo-tools .PHONY: clippy clippy: install-cargo-tools $(CARGO) clippy -- \ + --deny warnings \ --deny clippy::all \ --deny clippy::todo \ --deny clippy::unimplemented \ diff --git a/integration_tests/Makefile b/integration_tests/Makefile index c028663..0e38bb1 100644 --- a/integration_tests/Makefile +++ b/integration_tests/Makefile @@ -1,6 +1,7 @@ .PHONY: clippy-tests rustfmt fmt-check clippy-tests: cargo clippy --tests -- \ + --deny warnings \ --deny clippy::all \ --deny clippy::todo \ --deny clippy::unimplemented