3636 contents: write
3737 actions: read
3838 steps:
39+ # Add CI secret/auth steps here (e.g. configure AWS, custom tokens).
3940 ## <<Stencil::Block(getMoreCiSecrets)>>
4041{{ file.Block "getMoreCiSecrets" }}
4142 ## <</Stencil::Block>>
7980 run: mise run build
8081 - name: Run Go Tests
8182 run: go run gotest.tools/gotestsum@latest
83+ # Add env vars for Go tests here (e.g. TEST_DB_URL).
8284 ## <<Stencil::Block(gotestvars)>>
8385{{ file.Block " gotestvars" }}
8486 ## <</Stencil::Block>>
@@ -89,18 +91,21 @@ jobs:
8991 with:
9092 github-token: {{ " $ {{ github.token }}" }}
9193 version: 'latest'
94+ # Add auth steps for build/test here (e.g. login to private registry).
9295 ## <<Stencil::Block(buildtestauth)>>
9396{{ file.Block " buildtestauth" }}
9497 ## <</Stencil::Block>>
9598 - name: Build Test repo
9699 run: mise run buildtest
97100 # Fill in env: -> GITHUB_TOKEN here if you need a custom token to read module dependencies
101+ # Add env vars for the Build Test repo step here.
98102 ## <<Stencil::Block(buildTestEnvVars)>>
99103{{ file.Block " buildTestEnvVars" }}
100104 ## <</Stencil::Block>>
101105 - name: Run Tests
102106 run: mise run runtest
103107 # Fill in env: -> GITHUB_TOKEN here if you need a custom token to read module dependencies
108+ # Add env vars for the Run Tests step here.
104109 ## <<Stencil::Block(runTestEnvVars)>>
105110{{ file.Block " runTestEnvVars" }}
106111 ## <</Stencil::Block>>
@@ -110,6 +115,7 @@ jobs:
110115 run: mise run gentable
111116 env:
112117 # Fill in GH_TOKEN env with a different token here if you need a custom token to read module dependencies
118+ # Override token for README updates here. Default: GH_TOKEN from github.token.
113119 ## <<Stencil::Block(readmeUpdateGhToken)>>
114120{{- if empty (file.Block " readmeUpdateGhToken" ) }}
115121 GH_TOKEN: {{ " $ {{ github.token }}" }}
@@ -121,6 +127,7 @@ jobs:
121127 uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 #v5
122128 with:
123129 commit_message: Update README.md manifest options table
130+ # Add extra build/test steps here (run after standard build and test).
124131 ## <<Stencil::Block(buildteststeps)>>
125132{{ file.Block " buildteststeps" }}
126133 ## <</Stencil::Block>>
@@ -192,6 +199,7 @@ jobs:
192199 args: release --release-notes tempchangelog.md --clean
193200 env:
194201 GITHUB_TOKEN: {{ " ${{ secrets.GITHUB_TOKEN }}" }}
202+ # Add env vars for goreleaser here (e.g. CUSTOM_VAR from secrets).
195203 ## <<Stencil::Block(goreleaserEnvVars)>>
196204{{ file.Block " goreleaserEnvVars" }}
197205 ## <</Stencil::Block>>
@@ -204,6 +212,7 @@ jobs:
204212 run: npx semantic-release
205213{{- end }}
206214
215+ # Add additional workflow jobs here (alongside build-and -test and build-release).
207216 ## <<Stencil::Block(extraActions)>>
208217{{ file.Block " extraActions" }}
209218 ## <</Stencil::Block>>
0 commit comments