mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
ci: fix go tests not running if examples are updated (#15514)
- https://github.com/coder/coder/pull/15504 broke CI on main because of the aforementioned issue, this also fixes the test failure.
This commit is contained in:
@@ -80,7 +80,7 @@ jobs:
|
||||
- "cmd/**"
|
||||
- "coderd/**"
|
||||
- "enterprise/**"
|
||||
- "examples/*"
|
||||
- "examples/**"
|
||||
- "helm/**"
|
||||
- "provisioner/**"
|
||||
- "provisionerd/**"
|
||||
|
||||
@@ -51,6 +51,5 @@ func TestSubdirs(t *testing.T) {
|
||||
entryPaths[header.Typeflag] = append(entryPaths[header.Typeflag], header.Name)
|
||||
}
|
||||
|
||||
require.Subset(t, entryPaths[tar.TypeDir], []string{"build"})
|
||||
require.Subset(t, entryPaths[tar.TypeReg], []string{"README.md", "main.tf", "build/Dockerfile"})
|
||||
require.Subset(t, entryPaths[tar.TypeReg], []string{"README.md", "main.tf"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user