Skip to content

Commit 50bd8f2

Browse files
committed
chore: adding coverage
1 parent 907006a commit 50bd8f2

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/go-test-coverage.yml

-13
This file was deleted.

.github/workflows/go.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
1110
build:
1211
runs-on: ubuntu-latest
1312
steps:
@@ -30,4 +29,18 @@ jobs:
3029
run: go build -v ./...
3130

3231
- name: Test
33-
run: go test -v -p 2 ./...
32+
run: go test -v -p 2 ./...
33+
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

Comments
 (0)