Skip to content

Commit c829697

Browse files
Merge pull request #735 from hashicorp/coverage-test
Coverage test
2 parents 5c140ce + 7345b6d commit c829697

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/checks.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@ jobs:
3737
go-version-file: go.mod
3838
- name: Go test
3939
run: |
40-
go test ./... -race
40+
go test -v -race -coverprofile="coverage.out" ./...
41+
- name: Upload coverage report
42+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
43+
with:
44+
path: coverage.out
45+
name: coverage-report-${{matrix.target}}
46+
- name: Display coverage report # displayed only for linux and macOS
47+
if: ${{runner.os != 'Windows'}}
48+
run: go tool cover -func=coverage.out
4149

4250
copyright:
4351
name: "copyright headers"

0 commit comments

Comments
 (0)