File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 20
20
- golang-build-check
21
21
- golang-fmt-check
22
22
- golang-lint-check
23
- - golang-test- coverage-check
23
+ - golang-coverage-check
24
24
- golang-test-check
25
25
- golang-generate-check
26
26
steps :
@@ -103,7 +103,7 @@ jobs:
103
103
cache-dependency-path : go.sum
104
104
- uses : golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
105
105
106
- golang-test- coverage-check :
106
+ golang-coverage-check :
107
107
runs-on : ubuntu-latest
108
108
timeout-minutes : 10
109
109
steps :
Original file line number Diff line number Diff line change
1
+ name : Main branch CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ golang-coverage-check :
10
+ runs-on : ubuntu-latest
11
+ timeout-minutes : 10
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Set up Go
15
+ uses : actions/setup-go@v5
16
+ with :
17
+ go-version-file : go.mod
18
+ cache-dependency-path : go.sum
19
+ - name : Run go test
20
+ id : golang-test
21
+ run : |
22
+ go test -race -coverprofile=coverage.txt -covermode=atomic -p=5 ./...
23
+ - name : Upload coverage to Codecov
24
+ uses : codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
25
+ with :
26
+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments