mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
fix(ci): give typed server lint more heap and patch audited dependencies
Keep the typed lint rules and ratchet intact after the 8 GiB heap was exhausted on the runner. Resolve the patched Hono adapter and cross-spawn within their existing major versions.
This commit is contained in:
@@ -438,10 +438,10 @@ jobs:
|
||||
- name: Lint
|
||||
# Errors fail, and the warnings per rule may not pass
|
||||
# scripts/eslint-baseline.json (src, tests and eslint-disable'd
|
||||
# messages counted apart). Type-aware rules build the src + tests
|
||||
# program, which outgrows Node's default ~4 GB heap on the runner.
|
||||
# messages counted apart). The typed src and test programs can exhaust
|
||||
# an 8 GiB heap. Leave headroom within the runner's 16 GB of RAM.
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=8192
|
||||
NODE_OPTIONS: --max-old-space-size=10240
|
||||
TREK_LINT_BASE: refs/remotes/lint-base
|
||||
run: cd server && npm run lint:warnings
|
||||
|
||||
@@ -990,7 +990,7 @@ jobs:
|
||||
# Fails on any ESLint error, like lint:check did, and on any rule
|
||||
# whose warning count rises above scripts/eslint-baseline.json.
|
||||
# Typed linting (no-floating-promises, no-misused-promises) loads the
|
||||
# whole TypeScript program, so it gets the heap the server lint gets.
|
||||
# whole TypeScript program, which exceeds Node's default heap.
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=8192
|
||||
TREK_LINT_BASE: refs/remotes/lint-base
|
||||
|
||||
Reference in New Issue
Block a user