Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable test coverage + upload results in workflow #91

Merged
merged 3 commits into from
Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ jobs:

- name: Run Go Tests
run: make test

- name: Upload Test Coverage results
uses: actions/upload-artifact@v2
with:
name: lib-test-coverage-html
path: tests/v2/lib-test-coverage.html
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ main

# File created running tests
tests/**/tmp/
tests/v2/lib-test-coverage.*


# Mac related files
.DS_Store
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ bin:

.PHONY: test
test:
go test ./...
go test -coverprofile tests/v2/lib-test-coverage.out -v ./...
go tool cover -html=tests/v2/lib-test-coverage.out -o tests/v2/lib-test-coverage.html

.PHONY: clean
clean:
Expand Down