From 636e35a3ac53b7e87176bd2d28798eca43addcf8 Mon Sep 17 00:00:00 2001 From: Yihang Wang Date: Fri, 26 Apr 2024 13:50:58 +0800 Subject: [PATCH] ci: add coverage generation task --- .github/workflows/go.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 904204a..64f7ce8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,6 +29,9 @@ jobs: - name: Test run: go test -v ./... + - name: Run coverage + run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1