From 2346eed76724991a5cb961f9be60c57f09555ede Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Thu, 14 Nov 2024 14:10:41 +0000 Subject: [PATCH] ci: fix go tests not running if examples are updated --- .github/workflows/ci.yaml | 2 +- examples/examples_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ddea2e4942ee6..045c6d497a4e6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -80,7 +80,7 @@ jobs: - "cmd/**" - "coderd/**" - "enterprise/**" - - "examples/*" + - "examples/**" - "helm/**" - "provisioner/**" - "provisionerd/**" diff --git a/examples/examples_test.go b/examples/examples_test.go index 13b4df12f6cb9..1a558b6506c73 100644 --- a/examples/examples_test.go +++ b/examples/examples_test.go @@ -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"}) }