chore: check if go modules are tidy before build

Signed-off-by: Evans Mungai <mbuevans@gmail.com>
This commit is contained in:
Evans Mungai 2025-08-07 12:34:26 +01:00
parent d7df660418
commit 0dae3d6e88
No known key found for this signature in database
GPG key ID: BBEB812143DD14E1
2 changed files with 6 additions and 0 deletions

View file

@ -28,6 +28,8 @@ jobs:
check-latest: true
- name: Test source headers are present
run: make test-source-headers
- name: Check if go mod is tidy
run: go mod tidy -diff
- name: Run unit tests
run: make test-coverage
- name: Test build

View file

@ -246,3 +246,7 @@ info:
@echo "Git Tag: ${GIT_TAG}"
@echo "Git Commit: ${GIT_COMMIT}"
@echo "Git Tree State: ${GIT_DIRTY}"
.PHONY: tidy
tidy:
go mod tidy