From a18a4fae31e3f1f62eb6f634a2feb25635f2c1d1 Mon Sep 17 00:00:00 2001 From: Celeste Hickenlooper Date: Fri, 2 Jan 2026 22:50:28 -0800 Subject: [PATCH] ci: add test coverage reporting to workflow run tests with race detector and coverage profiling, upload results to codecov for visibility into test coverage metrics --- .github/workflows/go.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 071abe2..a4d795a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,6 +12,13 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.23" + go-version: "1.24" - name: Build run: make + - name: Run tests with coverage + run: go test -race -coverprofile=coverage.out -covermode=atomic ./... + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + files: ./coverage.out + fail_ci_if_error: false