From 147fbe04d7f8bd30b9e719d00a6cea4c2fcb5a3f Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Wed, 21 Oct 2020 23:05:11 -0400 Subject: [PATCH] Add step for codecov --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d10efe18..2a904f92 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,4 +24,8 @@ jobs: - name: Build binary to make sure it works run: go build -mod vendor - name: Test - run: go test -mod vendor -cover ./... + run: go test -mod vendor ./... -race -coverprofile=coverage.txt -covermode=atomic + - name: Codecov + uses: codecov/codecov-action@v1.0.14 + with: + file: ./coverage.txt