mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
ci(server): check the generated Kysely types and the SQL dialect baseline
check:db-types and lint:dialect were documented as gates but not run.
This commit is contained in:
@@ -238,6 +238,11 @@ jobs:
|
||||
- name: Entity files match the generator
|
||||
run: cd server && npm run check:entities
|
||||
|
||||
- name: Kysely table types match the migrated schema
|
||||
# src/db/kysely/ is generated from the migrations by gen:db-types; a
|
||||
# migration that changes a column regenerates it in the same change.
|
||||
run: cd server && npm run check:db-types
|
||||
|
||||
- name: Lint
|
||||
# Type-aware rules build the src + tests program, which outgrows
|
||||
# Node's default ~4 GB heap on the runner.
|
||||
@@ -260,6 +265,12 @@ jobs:
|
||||
# scripts/import-boundaries-baseline.json and may only shrink.
|
||||
run: cd server && npm run lint:boundaries
|
||||
|
||||
- name: SQLite-only SQL spellings may only shrink
|
||||
# INSERT OR IGNORE, datetime(), json_extract, insertId and friends
|
||||
# outside src/db/dialect/ are held to scripts/dialect-baseline.json,
|
||||
# so the code stays portable to a second engine.
|
||||
run: cd server && npm run lint:dialect
|
||||
|
||||
- name: Writes outside a transaction
|
||||
# A method that writes twice does it inside one uow.transactional.
|
||||
# Today's exceptions sit in scripts/tx-writes-baseline.json and may
|
||||
|
||||
Reference in New Issue
Block a user