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