mirror of
https://github.com/boolean-maybe/tiki
synced 2026-04-21 13:37:20 +00:00
skip packages with no tests
This commit is contained in:
parent
3d539bca19
commit
c81e7fbc83
1 changed files with 3 additions and 1 deletions
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue