From be661b243a694f9e6f97189008dcccb0b0ef0866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 30 Aug 2023 11:51:34 +0200 Subject: [PATCH] fix: remove wrong example from workspace (#1556) * fix: remove wrong example from workspace * chore: ignore VSCode from CI * fix: update test --- .github/workflows/ci.yml | 2 ++ .vscode/.testcontainers-go.code-workspace | 4 ---- modulegen/_template/ci.yml.tmpl | 2 ++ modulegen/main_test.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed30de60c4..25d102efdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,13 @@ on: branches: - main paths-ignore: + - '.vscode/**' - 'mkdocs.yml' - 'docs/**' - 'README.md' pull_request: paths-ignore: + - '.vscode/**' - 'mkdocs.yml' - 'docs/**' - 'README.md' diff --git a/.vscode/.testcontainers-go.code-workspace b/.vscode/.testcontainers-go.code-workspace index 6f2ab5c036..9fc20fb09f 100644 --- a/.vscode/.testcontainers-go.code-workspace +++ b/.vscode/.testcontainers-go.code-workspace @@ -37,10 +37,6 @@ "name": "example / pubsub", "path": "../examples/pubsub" }, - { - "name": "example / questdb", - "path": "../examples/questdb" - }, { "name": "example / spanner", "path": "../examples/spanner" diff --git a/modulegen/_template/ci.yml.tmpl b/modulegen/_template/ci.yml.tmpl index 8851177a99..a457cb2e5f 100644 --- a/modulegen/_template/ci.yml.tmpl +++ b/modulegen/_template/ci.yml.tmpl @@ -7,11 +7,13 @@ on: branches: - main paths-ignore: + - '.vscode/**' - 'mkdocs.yml' - 'docs/**' - 'README.md' pull_request: paths-ignore: + - '.vscode/**' - 'mkdocs.yml' - 'docs/**' - 'README.md' diff --git a/modulegen/main_test.go b/modulegen/main_test.go index 9ddb04d5c7..e130345535 100644 --- a/modulegen/main_test.go +++ b/modulegen/main_test.go @@ -459,11 +459,11 @@ func assertExampleGithubWorkflowContent(t *testing.T, example Example, exampleWo modulesList, err := ctx.GetModules() assert.Nil(t, err) - assert.Equal(t, " module: ["+strings.Join(modulesList, ", ")+"]", data[92]) + assert.Equal(t, " module: ["+strings.Join(modulesList, ", ")+"]", data[94]) examplesList, err := ctx.GetExamples() assert.Nil(t, err) - assert.Equal(t, " module: ["+strings.Join(examplesList, ", ")+"]", data[108]) + assert.Equal(t, " module: ["+strings.Join(examplesList, ", ")+"]", data[110]) } // assert content go.mod