skip packages with no tests

This commit is contained in:
booleanmaybe 2026-03-21 23:46:54 -04:00
parent 3d539bca19
commit c81e7fbc83

View file

@ -38,7 +38,9 @@ jobs:
- name: Run tests with coverage
if: matrix.os == 'ubuntu-latest'
shell: bash
run: go test -coverprofile=coverage.out -covermode=atomic ./...
run: |
pkgs=$(go list -f '{{if .TestGoFiles}}{{.ImportPath}}{{end}}' ./...)
go test -coverprofile=coverage.out -covermode=atomic $pkgs
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'