From f31273d96b5ae4420e45d3ba609343b1e7d9a9b5 Mon Sep 17 00:00:00 2001 From: Markus Stenberg Date: Thu, 16 May 2024 07:13:42 +0300 Subject: [PATCH] Add codecov.io coverage (Which is horrible, but that's life) --- .github/workflows/push.yaml | 5 +++++ Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 5ca5b94..d301da5 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -22,3 +22,8 @@ jobs: version: latest - run: | make build + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Makefile b/Makefile index f57e41b..b1262f9 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ fmt: templ fmt . $(BINARY): $(wildcard */*.go) $(wildcard *.go) $(GENERATED) Makefile - go test ./... + go test ./... -race -covermode=atomic -coverprofile=coverage.out go build . .PHONY: clean