mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 13:12:26 +00:00
ci(windows): reuse built runtime for package verifiers (#12178)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
1 parent
f4f8181553
commit
342471f28d
2 files changed
+16
-7
No files matched your search
@@ -1083,14 +1083,15 @@ jobs:
|
||||
tests/boundary/filesystem/directoryArtifactReaderOpen.test.ts
|
||||
tests/boundary/filesystem/javascriptPackagePrecedence.test.ts
|
||||
tests/boundary/filesystem/javascriptArtifactContentIdentity.test.ts
|
||||
# Use the runtime prepared above. npm pack still runs prepack.
|
||||
- name: Verify real Node Inspector discovery and observation
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
NODE_OPTIONS: "--max-old-space-size=1024"
|
||||
UV_THREADPOOL_SIZE: "2"
|
||||
run: npm run verify:inspector
|
||||
run: node scripts/verify/inspector/runtime-observation.mjs
|
||||
- name: Verify installed Windows package
|
||||
run: npm run verify:package:windows
|
||||
run: node scripts/verify-windows-package.mjs
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
with:
|
||||
node-version: 22.23.4
|
||||
|
||||
@@ -950,12 +950,20 @@ it("retains native Inspector verification on every documented package host", asy
|
||||
{ os: "macos-15-intel", platform: "darwin", architecture: "x64" },
|
||||
],
|
||||
});
|
||||
const windowsInspector = stepSchema.parse(
|
||||
workflow.jobs["windows-curated"].steps.find(
|
||||
(step) => step.run === "npm run verify:inspector",
|
||||
),
|
||||
const windowsSteps = workflow.jobs["windows-curated"].steps;
|
||||
const windowsBuild = windowsSteps.findIndex(
|
||||
(step) => step.run === "npm run build:cached",
|
||||
);
|
||||
expect(windowsInspector.if).toBeUndefined();
|
||||
expect(windowsBuild).toBeGreaterThanOrEqual(0);
|
||||
expect(windowsSteps[windowsBuild]?.if).toBeUndefined();
|
||||
for (const verifier of [
|
||||
"node scripts/verify/inspector/runtime-observation.mjs",
|
||||
"node scripts/verify-windows-package.mjs",
|
||||
]) {
|
||||
const step = windowsSteps.findIndex(({ run }) => run === verifier);
|
||||
expect(step).toBeGreaterThan(windowsBuild);
|
||||
expect(windowsSteps[step]?.if).toBeUndefined();
|
||||
}
|
||||
});
|
||||
|
||||
it.each([
|
||||
|
||||
Reference in new issue
Block a user