ci: add Forgejo Actions workflow (nix flake check + launcher parse) #9
No reviewers
Labels
No labels
bug
docs
enhancement
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pedromcaraujo/forge!9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ci-actions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The repo had no CI. This adds a Forgejo Actions workflow (
.forgejo/workflows/ci.yml)that runs on every PR and on pushes to
main, on the same self-hosted hostrunner the fleet uses (
nixon PATH, no container):nix flake check— evaluates the module (option processing, channelordering, assertions) and builds the generated launcher static root via the
flake's existing
checks.evaloutput.web/index.htmlwith no build step, so.forgejo/scripts/check-launcher.mjsextracts its inline
<script>blocks and parse-checks them (syntax only).Catches an error that would otherwise ship a blank page.
Notes / decisions
nixpkgs-fmtbut it was neverenforced, and the
.nixfiles use intentional=alignment (the themepalette, etc.) that nixpkgs-fmt would flatten. Left out to avoid ~65 lines of
destructive churn.
concurrency:block — Forgejo 15 LTS refuses to dispatch workflowsthat carry one.
Test plan
Both steps were run locally against this branch:
nix flake check→all checks passed!check-launcher.mjs→ok: 2 inline script block(s) parse cleanlygreen on this PR.