File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : codecov
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ run :
7+ strategy :
8+ matrix :
9+ os : [ ubuntu-latest, macos-latest, windows-latest ]
10+ go : [ 1.19.x ]
11+ runs-on : ${{ matrix.os }}
12+ steps :
13+ - uses : actions/checkout@main
14+
15+ - name : Set up Go
16+ uses : actions/setup-go@v3
17+ with :
18+ go-version : ${{ matrix.go }}
19+
20+ - name : Generate Coverage Report
21+ run : go test ./... -coverprofile=coverage.txt -covermode=atomic
22+
23+ - name : Upload Coverage Report to Codecov
24+ uses : codecov/codecov-action@v3
25+ with :
26+ file : ./coverage.txt
Original file line number Diff line number Diff line change 1+ name : Build
2+ on :
3+ - push
4+ - pull_request
5+ jobs :
6+ build :
7+ name : Build and Test
8+ strategy :
9+ matrix :
10+ go : [ 1.19.x ]
11+ runs-on :
12+ - ubuntu-latest
13+ steps :
14+ - name : Set up Go
15+ uses : actions/setup-go@v3
16+ with :
17+ go-version : ${{ matrix.go }}
18+
19+ - name : Check out code
20+ uses : actions/checkout@v3
21+
22+ - name : Build
23+ run : go build -v ./...
24+
25+ - name : Test
26+ run : go test -v ./...
Original file line number Diff line number Diff line change 1+ # If you prefer the allow list template instead of the deny list, see community template:
2+ # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3+ #
4+ # Binaries for programs and plugins
5+ * .exe
6+ * .exe~
7+ * .dll
8+ * .so
9+ * .dylib
10+
11+ # Test binary, built with `go test -c`
12+ * .test
13+
14+ # Output of the go coverage tool, specifically when used with LiteIDE
15+ * .out
16+
17+ # Dependency directories (remove the comment below to include it)
18+ # vendor/
19+
20+ # Go workspace file
21+ go.work
You can’t perform that action at this time.
0 commit comments