Skip to content

Commit f295e77

Browse files
committed
chore: run mpc tests on CI
1 parent adb0116 commit f295e77

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
- name: Install dependencies
2323
run: pnpm install --frozen-lockfile
2424

25+
- uses: cargo-bins/cargo-binstall@v1.10.22
26+
- name: Install co-noir
27+
run: cargo binstall --git https://github.com/TaceoLabs/co-snarks -- --branch main co-noir
28+
2529
- name: Run tests
2630
# TODO(security): test all packages & apps (js, noir & rust)
2731
run: cd packages/contracts && pnpm test

packages/contracts/test/PoolERC20.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,6 @@ describe("PoolERC20", () => {
414414
});
415415

416416
it("swaps mpc", async () => {
417-
if (process.env.CI) {
418-
// TODO: install co-noir on github actions and remove this
419-
console.log("skipping mpc swap test");
420-
return;
421-
}
422-
423417
const { note: aliceNote } = await sdk.poolErc20.shield({
424418
account: alice,
425419
token: usdc,
@@ -475,11 +469,6 @@ describe("PoolERC20", () => {
475469
});
476470

477471
it("fails to swap if order amounts do not match", async () => {
478-
if (process.env.CI) {
479-
// TODO: install co-noir on github actions and remove this
480-
return;
481-
}
482-
483472
const { note: aliceNote } = await sdk.poolErc20.shield({
484473
account: alice,
485474
token: usdc,

0 commit comments

Comments
 (0)