Enhance Go CI workflow with coverage reporting

Updated Go workflow to use go-version-file and added coverage report upload.
This commit is contained in:
Snider 2025-10-31 22:19:01 +00:00 committed by GitHub
parent c68626985e
commit 575b862fd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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