Skip to content

Commit 163eed6

Browse files
Merge pull request #639 from hashicorp/coverage
IND-2812 Coverage
2 parents c0dc6a0 + 0dbafbc commit 163eed6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ jobs:
7878
git submodule update --init --recursive
7979
cd raft-compat
8080
go mod tidy
81-
go test ./...
81+
go test -v -coverpkg=./... ./... -coverprofile="${{ github.workspace }}/coverage.out"
8282
# x86-64 specific build.
8383
- if: matrix.arch == 'x64'
8484
run: |
8585
git submodule update --init --recursive
8686
cd raft-compat
8787
go mod tidy
88-
go test -race ./...
88+
go test -race -v -coverpkg=./... ./... -coverprofile="${{ github.workspace }}/coverage.out"
89+
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
90+
with:
91+
path: "${{ github.workspace }}/coverage.out"
92+
name: coverage-report-${{matrix.go}}-${{matrix.arch}}

0 commit comments

Comments
 (0)