Skip to content

Commit d866a18

Browse files
committed
trying to fix ci
1 parent d4c262d commit d866a18

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

.github/workflows/checks.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,24 @@ jobs:
1616
steps:
1717
- name: Checkout the repository
1818
uses: actions/checkout@v3
19+
1920
- name: Setup
2021
uses: ./.github/actions/setup
21-
- name: Compile
22+
23+
- name: Compile only
24+
env:
25+
NODE_OPTIONS: "--max_old_space_size=16384"
26+
run: npx hardhat zkit compile
27+
28+
- name: Update hardhat.config
29+
run: |
30+
sed -i "/compilationSettings: {/a \ skipFiles:\n[\n\"mock\/ec\/scalarMult.circom\",\n\"mock\/ec\/scalarMultBrainpoolP256r1.circom\",\n\"mock\/signatures\/ecdsaNum.circom\",\n]," hardhat.config.ts
31+
cat hardhat.config.ts
32+
33+
- name: Compile and setup
2234
env:
2335
NODE_OPTIONS: "--max_old_space_size=16384"
2436
run: npm run compile
37+
2538
- name: Run tests
2639
run: npm run test

hardhat.config.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,7 @@ const config: HardhatUserConfig = {
4141
},
4242
zkit: {
4343
compilationSettings: {
44-
//onlyFiles: [],
45-
skipFiles: [
46-
"mock/ec/scalarMult.circom",
47-
"mock/ec/scalarMultBrainpoolP256r1.circom",
48-
"mock/signatures/ecdsaBits.circom",
49-
"mock/signatures/ecdsaNum.circom",
50-
],
51-
},
44+
}
5245
},
5346
};
5447

test/ec/EcMult.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ describe("BrainpoolP256r1 generator multiplication test", function () {
258258
});
259259
});
260260

261-
describe.skip("Scalar point multiplication test", function () {
261+
describe("Scalar point multiplication test", function () {
262262
//This circuit requires more than 16GB of RAM to generate the ZKey file,
263263
//so this test is limited to witness testing only
264264
this.timeout(10000000);
@@ -293,7 +293,7 @@ describe.skip("Scalar point multiplication test", function () {
293293
});
294294
});
295295

296-
describe.skip("BrainpoolP256r1 scalar point multiplication test", function () {
296+
describe("BrainpoolP256r1 scalar point multiplication test", function () {
297297
//This circuit requires more than 16GB of RAM to generate the ZKey file,
298298
//so this test is limited to witness testing only
299299
this.timeout(10000000);

test/signatures/Ecdsa.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async function testVerBits(
142142
return proofStruct;
143143
}
144144

145-
describe.skip("Ecdsa num test", function () {
145+
describe("Ecdsa num test", function () {
146146
//This circuit requires more than 16GB of RAM to generate the ZKey file,
147147
//so this test is limited to witness testing only
148148
this.timeout(10000000);
@@ -181,7 +181,7 @@ describe.skip("Ecdsa num test", function () {
181181
});
182182
});
183183

184-
describe.skip("Ecdsa bits test", function () {
184+
describe("Ecdsa bits test", function () {
185185
this.timeout(10000000);
186186
const reverter = new Reverter();
187187

0 commit comments

Comments
 (0)