Add go test workflow #4
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user