Skip to content

Add missing coverage report generation #58

Add missing coverage report generation

Add missing coverage report generation #58

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Run tests
run: |
go test -v -exec "sudo" -coverpkg=./... -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage.html
path: coverage.html