Commit 7771392
fix(ci): build the workspace packages before the machine test
The machine workflow's end-to-end test failed at "==> encoding inputs" with
ERR_MODULE_NOT_FOUND for @cartesi/codec/dist/index.js.
test/machine/{encode-inputs,verify-outputs}.mjs import @cartesi/codec, a
workspace package built from source, but nothing built it: `pnpm i` does not
build, and run.sh's `pnpm run build` invokes @cartesi/rollup's own tsdown script,
which covers only its own dist. The ci workflow is unaffected because `pnpm test`
goes through turbo, whose test:run depends on build, which depends on ^build.
Build the dependency graph in the workflow, before the test runs, leaving run.sh
to assume its packages are already built.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bp4RNPL7aZprKdXzcuJ98s1 parent e00fb19 commit 7771392
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments