Skip to content

Commit

Permalink
fix: Move golang stuff behind nativemodule arg
Browse files Browse the repository at this point in the history
  • Loading branch information
deregtd committed Sep 30, 2024
1 parent 702dc34 commit 7d622cc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 25 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,12 @@ on:
branches:
- 'main'
paths:
- 'stencil.yaml'
- 'manifest.yaml'
- '.mise.toml'
- '.github/workflows/build-release.yml'
- 'cmd/**'
- 'pkg/**'
- 'internal/**'
- 'go.mod'
- 'go.sum'
- 'templates/**'
- 'tests/**'
- 'manifest.yaml'
- 'stencil.yaml'
- '.goreleaser.yaml'
- '.mise.toml'

env:
GH_ROLE_ARN: arn:aws:iam::602046956384:role/GithubActions-github-actions-services-repos-Role
Expand Down
6 changes: 0 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
],
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"files.trimTrailingWhitespace": true,
"files.exclude": {
"**/bin": true,
Expand Down
4 changes: 2 additions & 2 deletions stencil.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ modules:
- name: github.com/udemy/eng-team-management
url: https://github.com/udemy/eng-team-management
version:
commit: 8eacc46158f50de1a13f754b4e5634749de3252c
tag: v0.2.5
commit: 4701335561a29ead510007394a13085da1f088e1
tag: v0.3.0
- name: github.com/udemy/stencil-templatemodule
url: ./
version:
Expand Down
20 changes: 12 additions & 8 deletions templates/.github/workflows/build-release.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,22 @@ on:
branches:
- 'main'
paths:
- 'stencil.yaml'
- 'manifest.yaml'
- '.mise.toml'
- '.github/workflows/build-release.yml'
- 'cmd/**'
- 'pkg/**'
- 'internal/**'
- 'go.mod'
- 'go.sum'
{{- if stencil.Arg "templateModule" }}
- 'templates/**'
- 'tests/**'
- 'manifest.yaml'
- 'stencil.yaml'
{{- end }}
{{- if stencil.Arg "nativeModule" }}
- 'go.mod'
- 'go.sum'
- '.goreleaser.yaml'
- '.mise.toml'
- 'cmd/**'
- 'pkg/**'
- 'internal/**'
{{- end }}

env:
GH_ROLE_ARN: arn:aws:iam::602046956384:role/GithubActions-github-actions-services-repos-Role
Expand Down
2 changes: 2 additions & 0 deletions templates/.vscode/settings.json.tpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
{{- if stencil.Arg "nativeModule" }}
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
],
"go.formatTool": "goimports",
"go.useLanguageServer": true,
{{- end }}
"files.trimTrailingWhitespace": true,
"files.exclude": {
"**/bin": true,
Expand Down

0 comments on commit 7d622cc

Please sign in to comment.