Skip to content

Commit b961776

Browse files
ci: fix go tests not running if examples are updated (coder#15514)
- coder#15504 broke CI on main because of the aforementioned issue, this also fixes the test failure.
1 parent d3eb896 commit b961776

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- "cmd/**"
8181
- "coderd/**"
8282
- "enterprise/**"
83-
- "examples/*"
83+
- "examples/**"
8484
- "helm/**"
8585
- "provisioner/**"
8686
- "provisionerd/**"

examples/examples_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ func TestSubdirs(t *testing.T) {
5151
entryPaths[header.Typeflag] = append(entryPaths[header.Typeflag], header.Name)
5252
}
5353

54-
require.Subset(t, entryPaths[tar.TypeDir], []string{"build"})
55-
require.Subset(t, entryPaths[tar.TypeReg], []string{"README.md", "main.tf", "build/Dockerfile"})
54+
require.Subset(t, entryPaths[tar.TypeReg], []string{"README.md", "main.tf"})
5655
}

0 commit comments

Comments
 (0)