From f58fbc0dff6fc54761aa472a685cd8906dfdcb38 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 ++++++-- .gitignore | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b18f48d..b2a762b 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 diff --git a/.gitignore b/.gitignore index 4e8e199..b7bf04a 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ *.nupkg .vscode/ .idea/ + +coverage.txt