Add Go code coverage to CI

This commit is contained in:
Michael Lynch
2022-04-17 15:47:54 -04:00
committed by Ben Johnson
parent ca07137d32
commit 301e1172fd
2 changed files with 7 additions and 1 deletions

View File

@@ -22,4 +22,9 @@ jobs:
run: go install ./cmd/litestream
- name: Run unit tests
run: make testdata && go test -v ./...
run: make testdata && go test -v --coverprofile=.coverage.out ./... && go tool cover -html .coverage.out -o .coverage.html
- uses: actions/upload-artifact@v3
with:
name: code-coverage
path: coverage.html