Add coverage data to github action
This commit is contained in:
parent
95963e9b29
commit
f1e6311366
2 changed files with 11 additions and 2 deletions
|
@ -15,5 +15,8 @@ docker build .
|
|||
|
||||
# Run the integration tests with docker-compose
|
||||
docker-compose up --build --detach
|
||||
go test -v ./... -tags integration -cover
|
||||
docker-compose down
|
||||
go test -v ./... -tags integration -cover -coverprofile=/tmp/c.out
|
||||
docker-compose down
|
||||
|
||||
# Convert the coverage data to html
|
||||
go tool cover -html=/tmp/c.out -o /tmp/coverage.html
|
Loading…
Add table
Add a link
Reference in a new issue