Add go test workflow #4

Merged
torjus merged 3 commits from chore/workflow into master 2023-12-05 21:32:53 +00:00
Showing only changes of commit d346944e20 - Show all commits

View File

@ -51,4 +51,14 @@ jobs:
run: go build -v ./... run: go build -v ./...
- name: Test - name: Test
run: go test -cover -v ./... run: go test -cover -coverprofile=/tmp/cov.out -v ./...
- name: Make coverage report
run: go tool cover -html=/tmp/cov.out -o /tmp/cov.html
- name: Publish coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: /tmp/cov.html