From fefc6b8a5f1bc54e0f0ce328e9fbbc1194cef6b6 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 6 Jun 2026 08:09:52 +0100 Subject: [PATCH] fix(ci): make test targets depend on 'deps' in Makefile; add 'go mod tidy' before 'make test-short' in build.yml test job (consistent with release workflow fix for missing go.sum entries during go test builds) --- .gitea/workflows/build.yml | 5 ++++- Makefile | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 9bf3379..aebd7e6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -27,7 +27,10 @@ jobs: run: go mod download - name: Run tests (short) - run: make test-short + run: | + go mod tidy + make test-short + # go mod tidy ensures go.sum is complete (fixes "missing go.sum entry" for configparser, wmenu, bubbles, bubbletea, lipgloss etc. during `go test`) build: name: Build diff --git a/Makefile b/Makefile index 2a89770..3adc5fe 100644 --- a/Makefile +++ b/Makefile @@ -14,13 +14,13 @@ LDFLAGS = -s -w \ -X '$(MODULE)/internal/version.BuildDate=$(DATE)' \ -X 'main.version=$(VERSION)' -test: +test: deps go test ./... -v -race -test-short: +test-short: deps go test -short ./... -v -race -test-cover: +test-cover: deps @mkdir -p build go test ./... -coverprofile=build/coverage.out go tool cover -html=build/coverage.out -o build/coverage.html