Skip to content

Commit b961776

Browse files
ci: fix go tests not running if examples are updated (#15514)
- #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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy