From 84f3327790161ff5f9c312cf4525b36f266ab6c6 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sat, 30 Apr 2022 22:19:16 -0700 Subject: [PATCH] adding codecov coverage support. --- .github/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c31c3b3..7fcdba3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -40,6 +40,12 @@ jobs: go mod vendor go test -race -coverprofile=coverage.txt -covermode=atomic -v -tags "static" $(go list ./... | grep -v /vendor/) + - uses: codecov/codecov-action@v2 + with: + files: ./coverage.txt + flags: unittests + fail_ci_if_error: true + verbose: true - name: Build Binaries run: |