From 769667dbef35b67602a778c5684603c7679cda15 Mon Sep 17 00:00:00 2001 From: pauhull Date: Thu, 4 Jan 2024 12:41:16 +0100 Subject: [PATCH] ci: add Codecov to check test coverage (#367) Co-authored-by: Jonas L --- .github/workflows/ci.yml | 4 +++- .gitignore | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03b345f5..60b5e6c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,9 @@ jobs: with: go-version: ${{ matrix.go-version }} - - run: go test -v ./... + - run: go test -coverprofile=coverage.txt -v -race ./... + + - uses: codecov/codecov-action@v3 generate: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 849ddff3..2596efa1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ dist/ +coverage.txt