Borg/.github/workflows/go.yml
Snider 575b862fd0
Enhance Go CI workflow with coverage reporting
Updated Go workflow to use go-version-file and added coverage report upload.
2025-10-31 22:19:01 +00:00

32 lines
648 B
YAML

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.work'
- name: Build
run: go build -v ./...
- name: Test
run: go test -coverage=coverage.txt -v ./...
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.txt