Repository navigation
chore(ci): add pre-merge GitHub Actions CI, ESLint flat config, and test DB hardening - #225
Merged
Merged
Conversation
…sts, and Docker dry-run
…nd enforce lint warning ceiling
…, and prune unused devDeps
theosiemensrhodes
marked this pull request as draft
November 25, 2026 06:26
theosiemensrhodes
marked this pull request as ready for review
November 25, 2026 06:28
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.
Problem
mainhas no pre-merge CI workflow to enforce linting, typechecking, tests, or Docker builds before merge, and several repo issues blocked turning CI on directly:pnpm lintinvokednext lint(removed in Next.js 16), andeslint.config.jscrashed undereslint-config-next@16due toFlatCompatcircular references plus pre-existing lint debt.tsc --noEmitfailed on clean checkouts without generated Next.js types (next-env.d.ts/.next/types).src/test/integration/coverage-service.test.tshardcoded 2026 shift dates that expired againstnew Date(), failing 21/23 tests.globalSetupfor pure unit tests, relied on committed credentials in.env.test, and had no guard preventingresetDatabase()from wiping a non-test database.pg-boss@12.15.0'sengines.node >=22.12.0requirement.Change
.github/workflows/ci.yml): Adds pre-merge workflow (pull_request/pushtomain+workflow_dispatch) with 5 checks:checksmatrix (Lint,Typecheckwithnext typegen+tsc+drizzle-kit check, andUnit Tests)test-integrationagainst apostgres:16-alpineservice containerdocker-builddry run (push: false, fork-safe GHA Buildx cache)eslint.config.js,package.json): Switcheslinttoeslint . --max-warnings=270, migrateseslint.config.jsto nativeeslint-config-next/core-web-vitals, ignorescoverage/**, removes unused@eslint/eslintrcanddotenv-cli, and temporarily downgrades pre-existing debt/new React 19 Compiler rules to"warn"so CI enforces 0 errors and caps total warnings immediately.vitest.config.ts,src/test/test-env.ts,src/test/test-db.ts,src/test/unit/test-env.test.ts,src/test/integration/coverage-service.test.ts):unit(no DB) andintegration(sequential with PostgresglobalSetup) projects..env.testwith synthetic defaults insrc/test/test-env.ts,.env.test.localoverrides, and loopback-only.envretargeting (never inheriting shellDATABASE_URL).resetDatabase()viaSELECT current_database()(requiring_testsuffix and closing the connection before throwing) and resetspgboss+public.coverage-service.test.tswith relative futureTemporal.PlainDatevalues and adds unit tests insrc/test/unit/test-env.test.ts.Dockerfile,package.json,.github/workflows/ci.yml): Aligns CI,Dockerfile(with a sharedpnpm-basestage usingnpm install -g pnpm@10.32.1),@types/node@^26.6.6, andengines.node >=26.Verification
SKIP_ENV_VALIDATION=1 pnpm exec next typegen && pnpm lint— 0 errors, 270 warnings (at ceiling)pnpm typecheck&SKIP_ENV_VALIDATION=1 pnpm exec drizzle-kit check— passedpnpm exec prettier --checkon modified/new config & test files — passedTZ=UTC pnpm test:unit— 8/8 files, 59/59 passedTZ=UTC pnpm test:integration— 9/9 files, 119/119 passed (against localneuron_testPostgres)SKIP_ENV_VALIDATION=1 NEXT_TELEMETRY_DISABLED=1 pnpm build(Nodev26.13.1) — passedLint,Typecheck,Unit Tests,Integration Tests,Docker Build (Dry Run)) all passed on PR chore(ci): add pre-merge GitHub Actions CI, ESLint flat config, and test DB hardening #225.Deployment notes
node:20-alpinetonode:26-alpine(Active LTS).mainrequiring the CI status checks (Lint,Typecheck,Unit Tests,Integration Tests,Docker Build (Dry Run))..env.test.localorTEST_DATABASE_URL;.env.testhas been removed.