Skip to content

Commit f8eaad6

Browse files
committed
github: update comments for clarity
1 parent 51882aa commit f8eaad6

File tree

1 file changed

+22
-42
lines changed

1 file changed

+22
-42
lines changed

.github/workflows/main.yaml

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@ defaults:
1616
shell: bash
1717

1818
env:
19-
# go needs absolute directories, using the $HOME variable doesn't work here.
19+
# Go needs absolute directories; using the $HOME variable doesn't work here.
2020
GOPATH: /home/runner/work/go
2121

2222
GO_VERSION: '1.24.9'
23-
23+
2424
LITD_BRANCH: 'master'
2525

2626
jobs:
27-
#######################
28-
# sql model generation
29-
#######################
27+
# Validate generated SQL models stay in sync with queries.
3028
sqlc-check:
3129
name: Sqlc check
3230
runs-on: ubuntu-latest
@@ -46,6 +44,7 @@ jobs:
4644
- name: Generate sql models
4745
run: make sqlc-check
4846

47+
# Rebuild RPC stubs and REST annotations to detect drift.
4948
rpc-check:
5049
name: RPC check
5150
runs-on: ubuntu-latest
@@ -61,6 +60,7 @@ jobs:
6160
- name: Generate RPC stubs and check REST annotations
6261
run: make rpc-check
6362

63+
# Ensure go.mod and go.sum remain tidy.
6464
mod-check:
6565
name: go mod check
6666
runs-on: ubuntu-latest
@@ -76,6 +76,7 @@ jobs:
7676
- name: Run go mod tidy
7777
run: make mod-check
7878

79+
# Confirm deterministic test vectors are up to date.
7980
test-vector-check:
8081
name: test vector check
8182
runs-on: ubuntu-latest
@@ -91,6 +92,7 @@ jobs:
9192
- name: Run test vector creation check
9293
run: make test-vector-check
9394

95+
# Verify database migration numbering and versions.
9496
migration-check:
9597
name: migration version check
9698
runs-on: ubuntu-latest
@@ -101,9 +103,7 @@ jobs:
101103
- name: Run migration check
102104
run: make migration-check
103105

104-
########################
105-
# Compilation check.
106-
########################
106+
# Build the codebase and docs examples to catch compilation regressions.
107107
compile-check:
108108
name: Compilation check
109109
runs-on: ubuntu-latest
@@ -122,9 +122,7 @@ jobs:
122122
- name: Compile docs examples
123123
run: make build-docs-examples
124124

125-
########################
126-
# sample configuration check
127-
########################
125+
# Guard sample-tapd.conf defaults against accidental drift.
128126
sample-conf-check:
129127
name: sample configuration check
130128
runs-on: ubuntu-latest
@@ -140,9 +138,7 @@ jobs:
140138
- name: check default values in sample-tapd.conf file
141139
run: make sample-conf-check
142140

143-
########################
144-
# Docker build check.
145-
########################
141+
# Smoke test Docker builds for default and dev images.
146142
docker-build-check:
147143
name: Docker build check
148144
runs-on: ubuntu-latest
@@ -167,9 +163,7 @@ jobs:
167163
file: dev.Dockerfile
168164
tags: 'dev-taproot-assets'
169165

170-
########################
171-
# cross compilation
172-
########################
166+
# Cross-compile release binaries across supported targets.
173167
cross-compile:
174168
name: cross compilation
175169
runs-on: ubuntu-latest
@@ -197,12 +191,10 @@ jobs:
197191
with:
198192
go-version: '${{ env.GO_VERSION }}'
199193

200-
- name: build release for ${{ matrix.sys }}
194+
- name: Build release for ${{ matrix.sys }}
201195
run: make release sys=${{ matrix.sys }}
202196

203-
########################
204-
# Lint check.
205-
########################
197+
# Run the lint suite for static analysis coverage.
206198
lint-check:
207199
name: Lint check
208200
runs-on: ubuntu-latest
@@ -220,9 +212,7 @@ jobs:
220212
- name: run lint
221213
run: make lint
222214

223-
########################
224-
# Format check.
225-
########################
215+
# Enforce formatting consistency.
226216
format-check:
227217
name: Format check
228218
runs-on: ubuntu-latest
@@ -238,9 +228,7 @@ jobs:
238228
- name: run format
239229
run: make fmt
240230

241-
########################
242-
# check PR updates release notes
243-
########################
231+
# Ensure pull requests update release notes unless explicitly skipped.
244232
milestone-check:
245233
name: Check release notes updated
246234
runs-on: ubuntu-latest
@@ -252,9 +240,7 @@ jobs:
252240
- name: Release notes check
253241
run: scripts/check-release-notes.sh
254242

255-
########################
256-
# run unit tests
257-
########################
243+
# Unit tests with race detection, coverage, and Postgres backend variants.
258244
unit-test:
259245
name: run unit tests
260246
runs-on: ubuntu-latest
@@ -275,7 +261,7 @@ jobs:
275261
with:
276262
go-version: '${{ env.GO_VERSION }}'
277263

278-
- name: run ${{ matrix.unit_type }}
264+
- name: Run ${{ matrix.unit_type }}
279265
run: make ${{ matrix.unit_type }}
280266

281267
- name: Send coverage
@@ -288,9 +274,7 @@ jobs:
288274
format: 'golang'
289275
parallel: true
290276

291-
########################
292-
# run integration tests
293-
########################
277+
# Integration tests on SQLite backend.
294278
integration-test:
295279
name: run itests
296280
runs-on: ubuntu-latest
@@ -331,9 +315,7 @@ jobs:
331315
format: 'golang'
332316
parallel: true
333317

334-
########################
335-
# run integration tests with Postgres backend
336-
########################
318+
# Integration tests on Postgres backend.
337319
integration-test-postgres:
338320
name: run itests postgres
339321
runs-on: ubuntu-latest
@@ -374,9 +356,7 @@ jobs:
374356
format: 'golang'
375357
parallel: true
376358

377-
########################
378-
# Run LiTd tests
379-
########################
359+
# LiT integration/unit tests with Taproot Assets replacements.
380360
run-lit:
381361
name: run LiT ${{ matrix.task_name }}
382362
runs-on: ubuntu-latest
@@ -385,7 +365,7 @@ jobs:
385365
fail-fast: false
386366
matrix:
387367
include:
388-
- task_name: itests custom_channels
368+
- task_name: itests (custom_channels)
389369
run_cmd: make itest icase=custom_channels
390370
- task_name: unit
391371
run_cmd: make unit
@@ -401,7 +381,7 @@ jobs:
401381
working-directory: ./lightning-terminal
402382
run: ${{ matrix.run_cmd }}
403383

404-
# Notify about the completion of all coverage collecting jobs.
384+
# Finalize Coveralls reporting after parallel coverage jobs.
405385
finish:
406386
if: ${{ always() }}
407387
needs: [ unit-test ]

0 commit comments

Comments
 (0)