File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 11name : Checks
22
33on :
4- pull_request :
4+ push :
5+ branches : [coverage-test]
56
67# This workflow runs for not-yet-reviewed external contributions and so it
78# intentionally has no write access and only limited read access to the
6768 key : go-mod-${{ matrix.GO_VERSION }}-${{ hashFiles('go.sum') }}
6869 restore-keys : |
6970 go-mod-${{ matrix.GO_VERSION }}
71+
7072 - name : " Unit tests"
7173 run : |
72- go test ./...
74+ go test -v -coverprofile=coverage.out ./...
75+
76+ - name : Upload coverage report
77+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
78+ with :
79+ path : coverage.out
80+ name : coverage-report-${{matrix.GO_VERSION}}
81+
82+ - name : Display coverage report
83+ run : go tool cover -func=coverage.out
7384
7485 unit-tests-race :
7586 name : " Unit Tests Race"
You can’t perform that action at this time.
0 commit comments