From f7b275617144b98c4afb284a28030ef7e7867ce4 Mon Sep 17 00:00:00 2001 From: mehanizm Date: Wed, 15 Apr 2020 11:05:21 +0300 Subject: [PATCH] build: add coverage report to ci script --- .github/workflows/go.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b32696a..7fb5821 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,5 +26,12 @@ jobs: run: | go get -v -t -d ./... - - name: Build - run: go test + - name: Generate coverage report + run: go test -race -coverprofile=coverage.txt -covermode=atomic + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./coverage.txt + name: codecov-umbrella + fail_ci_if_error: true