Skip to content

Commit

Permalink
fix: remove wrong example from workspace (#1556)
Browse files Browse the repository at this point in the history
* fix: remove wrong example from workspace

* chore: ignore VSCode from CI

* fix: update test
  • Loading branch information
mdelapenya committed Aug 30, 2023
1 parent ba6c5f0 commit be661b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 0 additions & 4 deletions .vscode/.testcontainers-go.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
"name": "example / pubsub",
"path": "../examples/pubsub"
},
{
"name": "example / questdb",
"path": "../examples/questdb"
},
{
"name": "example / spanner",
"path": "../examples/spanner"
Expand Down
2 changes: 2 additions & 0 deletions modulegen/_template/ci.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions modulegen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be661b2

Please sign in to comment.