From 2ce929a74787040de0713643aac2e4767ddf6809 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Sun, 28 Mar 2021 22:02:11 -0700 Subject: [PATCH] add codecov integration --- .github/workflows/push.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b18f48dc..b2a762bb 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -23,9 +23,13 @@ jobs: - uses: actions/setup-go@v1 with: go-version: 1.14 - - run: go test -cover ./... + - run: go test -cover -coverprofile=coverage.txt -covermode=atomic ./... env: - CGO_ENABLED: 0 + CGO_ENABLED: 0 + - uses: codecov/codecov-action@v1 + with: + files: coverage.txt + fail_ci_if_error: true # optional (default = false) snapshot: name: Snapshot