From 7f44e1adaf23f2708d51a8bda45cb6040299fbc7 Mon Sep 17 00:00:00 2001 From: bilalcaliskan Date: Sat, 18 Sep 2021 19:38:56 +0300 Subject: [PATCH] feat: codecov support --- .github/workflows/test.yml | 4 +++- .gitignore | 1 + README.md | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b77bb0e..5a1e4d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,9 @@ jobs: - name: Build run: go build -v . - name: Test - run: go test ./... -v -race + run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic + - name: Upload coverage + run: bash <(curl -s https://codecov.io/bash) golangci: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 826a989..36c27f2 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ kink dist/ completions/ +coverage.txt diff --git a/README.md b/README.md index ae86b3a..8eedcd4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ Go Report Build Status GitHub release - Go Mod + Go Mod + Codecov