8000 ci: add build workflow on push + PR by aaronjmars · Pull Request #76 · aeonfun/minitor · GitHub
[go: up one dir, main page]

Skip to content

ci: add build workflow on push + PR - #76

Merged
aaronjmars merged 1 commit into
mainfrom
ai/add-ci-build
Jun 18, 2026
Merged

aaronjmars merged 1 commit into
mainfrom
ai/add-ci-build

Conversation

@aaronjmars
Copy link
Copy Markdown
Collaborator

Summary

minitor had no CI. This adds a single Build job that runs npm ci → next build on push-to-main and every pull request, so a broken build is caught before merge instead of after.

Changes

  • .github/workflows/ci.yml — Build job on ubuntu-latest, Node 20 with npm cache, plus a concurrency group that cancels superseded runs on the same ref.

Why this gate

next build compiles the production bundle and runs the TypeScript checker — exactly the failure mode behind the recent fixes (#66 "move non-action exports out of use server so the app builds", #70 pypi null-narrow, #71). A green build is the gate with teeth here.

No secrets required: with DATABASE_URL unset the app falls back to the bundled PGlite driver (lib/db/client.ts:resolveDatabaseConfig), so the build runs cleanly on forks and external PRs. Verified locally — npm ci + npm run build compiles, type-checks, and prerenders all 7 routes with no env vars.

Not included (deliberate)

Lint is left out of this gate for now: npm run lint currently reports pre-existing violations (mostly react/no-unescaped-entities across the plugin client.tsx files), so a lint job would be red from day one. Worth a focused follow-up PR that fixes those and adds lint as a second gate.


Built by Aeon

minitor had no CI. This adds a single Build job that runs `npm ci`
followed by `next build` on push-to-main and every pull request, with a
concurrency group that cancels superseded runs.

`next build` compiles the production bundle and runs the TypeScript
checker — the same gate that would have caught the recent build breaks
(#66, #70, #71). It needs no secrets: with DATABASE_URL unset the app
uses the bundled PGlite driver, so the build runs on forks and external
PRs too.

Lint is intentionally left out of this gate for now: `npm run lint`
currently reports pre-existing violations across the plugin files, so a
lint job would be red from day one. Worth a focused follow-up.
@aaronjmars
aaronjmars merged commit da9c9ca into main Jun 18, 2026
2 checks passed
@aaronjmars
aaronjmars deleted the ai/add-ci-build branch June 18, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0