Skip to content

Commit 517f8ae

Browse files
committed
Add cmd/osgen coverage upload to unit CI workflow
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
1 parent f5e863e commit 517f8ae

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/test-unit.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ jobs:
2222
if: matrix.os != 'ubuntu-latest'
2323
- run: make test-unit race=true coverage=true
2424
if: matrix.os == 'ubuntu-latest'
25+
- name: Test cmd/osgen (separate module)
26+
if: matrix.os == 'ubuntu-latest'
27+
run: |
28+
cd cmd/osgen
29+
rm -rf tmp && mkdir -p tmp/osgen
30+
go test -race -cover ./... -args -test.gocoverdir=${{ github.workspace }}/cmd/osgen/tmp/osgen
31+
go tool covdata textfmt -i=tmp/osgen -o ${{ github.workspace }}/tmp/osgen.cov
2532
- uses: codecov/codecov-action@v5
2633
with:
2734
token: ${{ secrets.CODECOV_TOKEN }}
28-
files: tmp/unit.cov
35+
files: tmp/unit.cov,tmp/osgen.cov
2936
flags: unit
3037
if: matrix.os == 'ubuntu-latest'
3138

0 commit comments

Comments
 (0)