Repository navigation
add CI that tests the editor and publishes its image - #100
Merged
Merged
Conversation
Replace the old test workflow, which only listened to develop and master, with one that runs on pull requests and on main. Tests run on Node 26. The image job builds the Dockerfile and smoke-tests the result; a merge to main also publishes it to the GitHub Container Registry for amd64 and arm64. Actions are pinned by commit SHA. Upgrade mocha to 12, because mocha 10 cannot start on Node 26. Part of textyly/crossly#1. Co-Authored-By: Claude Sonnet 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.
Slice S0 of the delivery plan: test, build and publish the editor image.
Workflow
.github/workflows/ci.yml(renamed fromrun-tests.yml, which only listened todevelopandmasterand so never ran):mainanddevelop, and on pushes tomain.testjob: Node 26,npm ci, compile, compile tests, mocha.imagejob (after tests pass): builds the Dockerfile and smoke-tests it (page loads,main.jsserved, live-reload is 404, container is not root). Only on a push tomainit logs in to GHCR with the built-in token and pushesghcr.io/textyly/crossly-ui:main-<short-sha>-<unix-timestamp>for amd64 and arm64. Pull requests never publish.RUNsteps.Tooling: mocha
^10.7.3to^12.0.3. Mocha 10 cannot start on Node 26 (itsyargsdependency fails on ES module scope).Checked locally:
actionlintis clean; the test steps pass on Node 26 with the new lockfile; the smoke-test script passes against a local build.Expected on merge: the first image is published, probably as a private package, which then needs making public.
Part of textyly/crossly#1.