Skip to content

github: Show code coverage #30

github: Show code coverage

github: Show code coverage #30

Workflow file for this run

name: test
on:
push:
tag-ignore:
- '**'
jobs:
go:
name: Go ${{matrix.go}}
runs-on: ubuntu-latest
strategy:
matrix:
go:
- 1.21.x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{matrix.go}}
- run: go vet ./...
- run: go run honnef.co/go/tools/cmd/[email protected] ./...
- run: go test -coverprofile cover.out -v ./...
- run: go tool cover -html cover.out -o cover.html
- run: go run ./cmd/snappr --help
- uses: actions/upload-artifact@v3
with:
name: coverprofile
path: cover.html