There was an error while loading. Please reload this page.
2 parents ce9a93b + c5d0d1b commit 36ba2bcCopy full SHA for 36ba2bc
1 file changed
.github/workflows/go.yml
@@ -15,6 +15,9 @@ jobs:
15
runs-on: ubuntu-latest
16
steps:
17
- uses: actions/checkout@v4
18
+ - uses: actions/setup-go@v4
19
+ with:
20
+ go-version-file: 'go.mod'
21
22
- name: Set up Go
23
uses: actions/setup-go@v4
@@ -24,5 +27,11 @@ jobs:
24
27
- name: Build
25
28
run: go build -v ./...
26
29
- - name: Test
- run: go test -v ./...
30
+ - name: Test and coverage
31
+ run: go test -v ./... -coverprofile=coverage.out -covermode=atomic
32
+
33
+ - name: Upload coverage artifact
34
+ uses: actions/upload-artifact@v4
35
36
+ name: coverage-report
37
+ path: coverage.out
0 commit comments