From 2b49e557e4092e26db6dda31310ff1bfd077bb28 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Fri, 14 May 2021 23:33:38 +0100 Subject: [PATCH] Re-add codecov support --- .github/workflows/test.yaml | 4 ++++ Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ef59be3..5676ebc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -42,6 +42,10 @@ jobs: run: | git config --global url."https://${{ secrets.GHCR_TOKEN }}:x-oauth-basic@github.com/${{ github.repository_owner }}".insteadOf "https://github.com/${{ github.repository_owner }}"; make test CI_RUN=${CI} + - uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + files: coverage.out release: name: Create Release diff --git a/Makefile b/Makefile index 75c9fc9..30811bc 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ prepare: gocritic check test: lint tidy - GOPRIVATE=$(SET_PRIVATE) go test -race $(ADDITIONAL_BUILD_FLAGS) -cover + GOPRIVATE=$(SET_PRIVATE) go test -race $(ADDITIONAL_BUILD_FLAGS) -cover -coverprofile=coverage.out lint: go fmt