Repository navigation
feat(ci): optional build step before the Go checks - #25
Merged
Merged
Conversation
go-ci.yml and docker-publish.yml's quality job take node-version, node-cache-dependency-path and pre-build-command. They run after Go is set up, before lint and tests, for Go builds that need files that aren't committed, such as a web UI embedded with go:embed (code-review-console stops committing its built admin UI). All default to empty, so other repos are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ngoyal16
added a commit
to divmora/code-review-console
that referenced
this pull request
Nov 23, 2026
Back to divmora/.github's go-ci.yml and docker-publish.yml, which now take node-version, node-cache-dependency-path and pre-build-command (divmora/.github#25): make web runs before lint and tests in both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ngoyal16
added a commit
to divmora/code-review-console
that referenced
this pull request
Nov 23, 2026
…d releases (#137) * build: stop committing the admin UI bundle; build it in CI, Docker and releases The built admin UI (internal/admin/ui, about 600 KB) was committed so a plain go build had it, which made nearly every UI change conflict with the next. It is now ignored, except internal/admin/ui/.keep (restored by web/public/.keep on each build) so go:embed still compiles. - Dockerfile: a node:24 stage builds the UI, copied in before go build. - GoReleaser: make web in the before hooks. - CI: the console's own Go job (like the org go-ci workflow, same pinned golangci-lint) builds the UI first; the stale-bundle check is gone. - Makefile: build, test, test-db and lint build the UI when it's missing. - A binary built without the UI starts and serves a page saying how to build it, instead of panicking; the admin tests say to run make web. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: drop the Docker workflow's duplicate Go checks The org docker-publish workflow's Go quality job ran lint and tests without building the admin UI, which is no longer committed, so the admin tests failed there. ci.yml runs the same lint and tests with the UI built on every PR and push; the image build runs when the quality job is skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: use the shared workflows' pre-build step instead of an own job Back to divmora/.github's go-ci.yml and docker-publish.yml, which now take node-version, node-cache-dependency-path and pre-build-command (divmora/.github#25): make web runs before lint and tests in both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
code-review-console is stopping committing its built admin UI (divmora/code-review-console#137). The Go binary embeds the UI with
go:embed, and the admin tests serve it, so the Go checks need the UI built first. Neithergo-ci.ymlnordocker-publish.yml's quality job had a way to run anything before lint and tests.Changes
Three optional inputs, added to both
go-ci.ymlanddocker-publish.yml(quality job):node-version''actions/setup-node@v4) when setnode-cache-dependency-path''pre-build-command''bash -euo pipefailafter Go and Node are set up, before lint and testsCaller (console)
Merge this first. Console #137 will then use these inputs and drop its own CI job.
🤖 Generated with Claude Code