Skip to content

Commit

Permalink
fix: integrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybest committed Jan 10, 2024
2 parents 560ca56 + 11fffbf commit fe51956
Show file tree
Hide file tree
Showing 28 changed files with 6,424 additions and 1,531 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/ceremony-param-tests-c-witness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js setVerifyingKeys
HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js create -s 6 -q true
HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js deployPoll \
-pk macipk.ea638a3366ed91f2e955110888573861f7c0fc0bb5fb8b8dca9cd7a08d7d6b93 \
--duration 30 \
--duration 300 \
--max-messages 390625 \
--max-vote-options 125 \
--int-state-tree-depth 2 \
Expand Down Expand Up @@ -47,7 +47,7 @@ HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js publish \
--nonce 2 \
--poll-id 0 \
-q true
HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js timeTravel -s 100 -q true
HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js timeTravel -s 300 -q true
HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js mergeSignups --poll-id 0 -q true
HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js mergeMessages --poll-id 0 -q true
HARDHAT_CONFIG=./build/hardhat.config.js node build/ts/index.js genProofs \
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
- name: Initialize Project
run: |
npm install
npx lerna bootstrap
npm run bootstrap
npm run build
env:
STATE_TREE_DEPTH: ${{ vars.STATE_TREE_DEPTH }}

- name: Compile Contracts
run: |
Expand All @@ -41,7 +43,7 @@ jobs:
- name: Publish Project
run: |
# Prevent `git commit error` when running `lerna version`
# It will not pushed to GitHub. It is ephemeral
# It creates an ephemeral commit that will not be pushed to GitHub
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nightly-ceremony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
npm install
npm run bootstrap
npm run build
env:
STATE_TREE_DEPTH: 6

- name: Compile contracts with ceremony params and run hardhat fork
- name: Run hardhat fork
run: |
cd contracts
npm run compileSol 6
npm run hardhat &
- name: Download rapidsnark (1c137)
Expand All @@ -53,4 +54,5 @@ jobs:
run: ./.github/scripts/ceremony-param-tests-c-witness.sh

- name: Stop Hardhat
if: always()
run: kill $(lsof -t -i:8545)
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
run: npm run ${{ matrix.command }}

- name: Stop Hardhat
if: always()
run: kill $(lsof -t -i:8545)

unit:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ jobs:
run: |
git config --global url."https://github.com/".insteadOf git://github.com/
npm install
npx lerna bootstrap
npm run bootstrap
npm run build
env:
STATE_TREE_DEPTH: ${{ vars.STATE_TREE_DEPTH }}

- name: Publish NPM
run: |
Expand Down
Loading

0 comments on commit fe51956

Please sign in to comment.