mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
ci(quality): add a prettier format-check gate
Wire `pnpm format:check` into the Lint/Typecheck/Test job and extend .prettierignore so prettier never rewrites generator-owned artifacts: the OpenAPI contract (whose exact bytes the openapi:check job enforces), the build-emitted service worker, the Prisma client, and the lockfile.
This commit is contained in:
1 parent
68033b2d66
commit
b3fea2ef59
2 files changed
+18
No files matched your search
@@ -33,6 +33,12 @@ jobs:
|
||||
- name: ESLint
|
||||
run: pnpm lint
|
||||
|
||||
# Prettier formatting gate. The format pass excludes generator-owned
|
||||
# artifacts via .prettierignore (notably docs/api/openapi.yaml, which
|
||||
# the OpenAPI drift check below enforces byte-for-byte).
|
||||
- name: Prettier format check
|
||||
run: pnpm format:check
|
||||
|
||||
- name: TypeScript strict check
|
||||
run: pnpm typecheck
|
||||
|
||||
|
||||
@@ -2,5 +2,17 @@ node_modules
|
||||
.next
|
||||
out
|
||||
build
|
||||
coverage
|
||||
|
||||
# Prisma-generated client.
|
||||
src/generated
|
||||
|
||||
# Lockfile — owned by pnpm.
|
||||
pnpm-lock.yaml
|
||||
|
||||
# Generator-owned API contract. The openapi:check job enforces its exact
|
||||
# bytes against the Zod registry, so prettier must never rewrite it.
|
||||
docs/api/openapi.yaml
|
||||
|
||||
# Build-generated service worker (the PWA build emits it).
|
||||
public/sw.js
|
||||
Reference in new issue
Block a user