We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 907006a commit 50bd8f2Copy full SHA for 50bd8f2
.github/workflows/go-test-coverage.yml
.github/workflows/go.yml
@@ -7,7 +7,6 @@ on:
7
branches: [ "main" ]
8
9
jobs:
10
-
11
build:
12
runs-on: ubuntu-latest
13
steps:
@@ -30,4 +29,18 @@ jobs:
30
29
run: go build -v ./...
31
32
- name: Test
33
- run: go test -v -p 2 ./...
+ run: go test -v -p 2 ./...
+ Coverage:
34
+ name: Go test coverage check
35
+ runs-on: ubuntu-latest
36
+ steps:
37
+ - uses: actions/checkout@v3
38
+ - uses: actions/setup-go@v3
39
+
40
+ - name: generate test coverage
41
+ run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
42
43
+ - name: check test coverage
44
+ uses: vladopajic/go-test-coverage@v2
45
+ with:
46
+ config: ./.testcoverage.yml
0 commit comments