From 575b862fd035964582d5c4e5486fdfee83ab59c2 Mon Sep 17 00:00:00 2001 From: Snider Date: Fri, 31 Oct 2025 22:19:01 +0000 Subject: [PATCH] Enhance Go CI workflow with coverage reporting Updated Go workflow to use go-version-file and added coverage report upload. --- .github/workflows/go.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f1c8fe0..9ef2c76 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,10 +17,16 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: '1.24' + go-version-file: 'go.work' - name: Build run: go build -v ./... - name: Test - run: go test -v ./... + run: go test -coverage=coverage.txt -v ./... + + - name: Upload coverage report + uses: actions/upload-artifact@v4 + with: + name: coverage-report + path: coverage.txt