Skip to content

Commit

Permalink
fix(nightly): do not run maci-coordinator tests from root on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed May 14, 2024
1 parent 9b2f269 commit 4dac679
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ name: Nightly
on:
schedule:
- cron: 0 0 * * *
pull_request:

env:
COORDINATOR_RPC_URL: "http://localhost:8545"
COORDINATOR_PUBLIC_KEY_PATH: "./pub.key"
COORDINATOR_PRIVATE_KEY_PATH: "./priv.key"
COORDINATOR_TALLY_ZKEY_NAME: "TallyVotes_10-1-2_test"
COORDINATOR_MESSAGE_PROCESS_ZKEY_NAME: "ProcessMessages_10-2-1-2_test"
COORDINATOR_ZKEY_PATH: "../cli/zkeys"
COORDINATOR_RAPIDSNARK_EXE: "~/rapidsnark/build/prover"

jobs:
generate-proving-keys:
Expand Down Expand Up @@ -75,6 +85,15 @@ jobs:
- name: ${{ matrix.command }}
run: pnpm run ${{ matrix.command }}

- name: maci-coordinator Generate keypair
run: |
pnpm generate-keypair
working-directory: coordinator

- name: maci-coordinator Test
run: pnpm run test
working-directory: coordinator

- name: Stop Hardhat
if: always()
run: kill $(lsof -t -i:8545)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test:cli": "lerna run test --scope \"maci-cli\"",
"test:cli-ceremony": "lerna run test:ceremony --scope \"maci-cli\"",
"test:integration": "lerna run test --scope \"maci-integrationtests\"",
"test": "lerna run test --ignore maci-integrationtests --ignore maci-cli",
"test": "lerna run test --ignore maci-integrationtests --ignore maci-cli --ignore maci-coordinator",
"types": "lerna run types",
"docs": "lerna run docs",
"prepare": "is-ci || husky"
Expand Down

0 comments on commit 4dac679

Please sign in to comment.