Skip to content

Commit f115538

Browse files
committed
workflow updation
1 parent a445e0b commit f115538

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/check.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Checks
22

33
on:
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
@@ -67,9 +68,19 @@ jobs:
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"

0 commit comments

Comments
 (0)