Skip to content

Commit 7d622cc

Browse files
committed
fix: Move golang stuff behind nativemodule arg
1 parent 702dc34 commit 7d622cc

File tree

5 files changed

+19
-25
lines changed

5 files changed

+19
-25
lines changed

.github/workflows/build-release.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,12 @@ on:
1010
branches:
1111
- 'main'
1212
paths:
13+
- 'stencil.yaml'
14+
- 'manifest.yaml'
15+
- '.mise.toml'
1316
- '.github/workflows/build-release.yml'
14-
- 'cmd/**'
15-
- 'pkg/**'
16-
- 'internal/**'
17-
- 'go.mod'
18-
- 'go.sum'
1917
- 'templates/**'
2018
- 'tests/**'
21-
- 'manifest.yaml'
22-
- 'stencil.yaml'
23-
- '.goreleaser.yaml'
24-
- '.mise.toml'
2519

2620
env:
2721
GH_ROLE_ARN: arn:aws:iam::602046956384:role/GithubActions-github-actions-services-repos-Role

.vscode/settings.json

-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
2-
"go.lintTool": "golangci-lint",
3-
"go.lintFlags": [
4-
"--fast"
5-
],
6-
"go.formatTool": "goimports",
7-
"go.useLanguageServer": true,
82
"files.trimTrailingWhitespace": true,
93
"files.exclude": {
104
"**/bin": true,

stencil.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ modules:
33
- name: github.com/udemy/eng-team-management
44
url: https://github.com/udemy/eng-team-management
55
version:
6-
commit: 8eacc46158f50de1a13f754b4e5634749de3252c
7-
tag: v0.2.5
6+
commit: 4701335561a29ead510007394a13085da1f088e1
7+
tag: v0.3.0
88
- name: github.com/udemy/stencil-templatemodule
99
url: ./
1010
version:

templates/.github/workflows/build-release.yml.tpl

+12-8
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,22 @@ on:
1010
branches:
1111
- 'main'
1212
paths:
13+
- 'stencil.yaml'
14+
- 'manifest.yaml'
15+
- '.mise.toml'
1316
- '.github/workflows/build-release.yml'
14-
- 'cmd/**'
15-
- 'pkg/**'
16-
- 'internal/**'
17-
- 'go.mod'
18-
- 'go.sum'
17+
{{- if stencil.Arg "templateModule" }}
1918
- 'templates/**'
2019
- 'tests/**'
21-
- 'manifest.yaml'
22-
- 'stencil.yaml'
20+
{{- end }}
21+
{{- if stencil.Arg "nativeModule" }}
22+
- 'go.mod'
23+
- 'go.sum'
2324
- '.goreleaser.yaml'
24-
- '.mise.toml'
25+
- 'cmd/**'
26+
- 'pkg/**'
27+
- 'internal/**'
28+
{{- end }}
2529

2630
env:
2731
GH_ROLE_ARN: arn:aws:iam::602046956384:role/GithubActions-github-actions-services-repos-Role

templates/.vscode/settings.json.tpl

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2+
{{- if stencil.Arg "nativeModule" }}
23
"go.lintTool": "golangci-lint",
34
"go.lintFlags": [
45
"--fast"
56
],
67
"go.formatTool": "goimports",
78
"go.useLanguageServer": true,
9+
{{- end }}
810
"files.trimTrailingWhitespace": true,
911
"files.exclude": {
1012
"**/bin": true,

0 commit comments

Comments
 (0)