We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8de505 commit c034116Copy full SHA for c034116
.github/workflows/go.yml
@@ -7,7 +7,6 @@ on:
7
branches: [ "main" ]
8
9
jobs:
10
-
11
build:
12
runs-on: ubuntu-latest
13
steps:
@@ -21,10 +20,16 @@ jobs:
21
20
- name: Build
22
run: go build -v ./...
23
24
- - name: Test
25
- run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
+ - name: Test (with cross-package coverage)
+ run: |
+ go test ./... \
26
+ -v \
27
+ -race \
28
+ -covermode=atomic \
29
+ -coverpkg=./... \
30
+ -coverprofile=coverage.txt
31
32
- name: Upload coverage to Codecov
33
uses: codecov/codecov-action@v3
34
env:
- CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
35
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
0 commit comments