Skip to content

Commit 4bc976c

Browse files
committed
Add .gitignore and generate coverage report
1 parent b00f8ff commit 4bc976c

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v2
2121

2222
- name: Test
23-
run: go test
23+
run: go test ./... -coverprofile cover.out
2424
env:
2525
CGO_ENABLED: 0
2626
GO111MODULE: on

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
bin
9+
testbin/*
10+
11+
# Test binary, build with `go test -c`
12+
*.test
13+
14+
# Mock (gomock) artifacts
15+
gomock_reflect_*
16+
17+
# Output of the go coverage tool, specifically when used with LiteIDE
18+
*.out
19+
20+
# editor and IDE paraphernalia
21+
.idea
22+
*.swp
23+
*.swo
24+
*~

0 commit comments

Comments
 (0)