diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5676d09847..7b06b3d007 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1149,6 +1149,10 @@ jobs: - run: npm ci - name: Reuse portable build outputs across runs uses: ./.github/actions/portable-build-cache + # Code changes already run this verifier through the required lint lane. + - name: Check documented numeric limits + if: needs.changes.outputs.code != 'true' + run: node scripts/verify/rea-numeric-limits.mjs - run: npm run docs:check - name: Verify published routes, source links and local anchors run: npm run verify:docs:routes diff --git a/tests/evaluation/numericLimitCheck.test.ts b/tests/evaluation/numericLimitCheck.test.ts index 9888d81267..6d198c2da8 100644 --- a/tests/evaluation/numericLimitCheck.test.ts +++ b/tests/evaluation/numericLimitCheck.test.ts @@ -1,10 +1,8 @@ import { expect, it } from "vitest"; -import { readFile } from "node:fs/promises"; import { compareDocumentedNumericLimits, discoverNumericLimitUses, documentedLimitCell, - loadExportedNumericLimitBounds, parseDocumentedNumericLimits, parseNumericLimitRegistry, parseRuntimeSettingEnvironments, @@ -639,19 +637,3 @@ it("names a documented limit the code does not export", () => { 'REA_FIXED: documented Restart-only numeric limits default "30", floor "30", maximum "30", but code exports no bound', ]); }); - -it("matches the inventory to the exported analysis settings and owner bounds", async () => { - const inventory = await readFile( - new URL("../../docs/reference/rea-limit-inventory.md", import.meta.url), - "utf8", - ); - const exported = await loadExportedNumericLimitBounds(); - expect(exported.failures).toEqual([]); - expect( - compareDocumentedNumericLimits( - parseDocumentedNumericLimits(inventory), - exported.bounds, - exported.names, - ), - ).toEqual([]); -}); diff --git a/turbo.json b/turbo.json index 643a322b57..9f5eb0a12a 100644 --- a/turbo.json +++ b/turbo.json @@ -86,6 +86,7 @@ "src/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", "tests/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", "docs/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", + "docs/reference/rea-limit-inventory.md", ".github/actions/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", "website/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", "src/**/*.{json,md,py,yaml,yml}",