mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-18 06:22:05 +09:00
integration: skip subpackage tests in workflow generator
The generator scans `integration/` recursively for `Test*` functions and emits one CI job per match. Helper subpackages like `dockertestutil` and `tsic` host plain unit tests that should run under `go test`, not as Docker-based integration matrix entries. Limit the scan to depth 1 so only top-level `integration/*_test.go` files contribute job names.
This commit is contained in:
@@ -68,6 +68,7 @@ func findTests() []string {
|
|||||||
args := []string{
|
args := []string{
|
||||||
"--type", "go",
|
"--type", "go",
|
||||||
"--regexp", "func (Test.+)\\(.*",
|
"--regexp", "func (Test.+)\\(.*",
|
||||||
|
"--max-depth", "1",
|
||||||
"../../integration/",
|
"../../integration/",
|
||||||
"--replace", "$1",
|
"--replace", "$1",
|
||||||
"--sort", "path",
|
"--sort", "path",
|
||||||
|
|||||||
Reference in New Issue
Block a user