Skip to content

Commit 03db026

Browse files
test(e2e): use --no-contract-build for foundry+CDM cells (depends on PR #86)
1 parent 7534c09 commit 03db026

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

e2e/cli/deploy.test.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,13 @@ describe("dot deploy — foundry (requires Paseo + IPFS)", () => {
246246
"--signer", "dev",
247247
"--domain", domain,
248248
"--buildDir", absBuildDir(foundry),
249-
// --no-build skips both frontend AND contract build; the fixture
250-
// ships pre-committed artefacts under out/ so the deploy uses
251-
// them directly without spawning forge (not available on the
252-
// CI runner).
249+
// --no-build skips the frontend build; --no-contract-build skips
250+
// the forge subprocess. The fixture ships pre-committed bytecode
251+
// under out/Counter.sol/Counter.json so the deploy reads it
252+
// directly without needing forge on the CI runner.
253253
"--no-build",
254254
"--contracts",
255+
"--no-contract-build",
255256
"--playground",
256257
"--suri", SIGNER.suri,
257258
"--dir", foundry,
@@ -274,11 +275,15 @@ describe("dot deploy — CDM (requires Paseo + IPFS)", () => {
274275
"--signer", "dev",
275276
"--domain", domain,
276277
"--buildDir", absBuildDir(rustCdm),
277-
// --no-build: the fixture ships a pre-committed .contract under
278-
// target/ so the deploy uses it directly without spawning
279-
// cargo-contract (not available on the CI runner).
278+
// --no-build skips the frontend build; --no-contract-build skips
279+
// the cargo-contract spawn so we don't need the rust toolchain
280+
// on the CI runner. Note: the cdm skip-build path still calls
281+
// detectContracts which spawns `cargo metadata` — tracked as a
282+
// follow-up; for this fixture a small Cargo.toml that's quick
283+
// to parse keeps it tolerable.
280284
"--no-build",
281285
"--contracts",
286+
"--no-contract-build",
282287
"--playground",
283288
"--suri", SIGNER.suri,
284289
"--dir", rustCdm,

0 commit comments

Comments
 (0)