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:
parent
c68626985e
commit
575b862fd0
1 changed files with 8 additions and 2 deletions
10
.github/workflows/go.yml
vendored
10
.github/workflows/go.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue