-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split nargo verify and e2e tests into two different workflows (#103)
- Loading branch information
1 parent
5a4aba1
commit bef5e97
Showing
4 changed files
with
88 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Workflows | ||
|
||
- [Circuits profiling](./circuits_profile.yml) | ||
- Runs `nargo info` and stores the results into an artefact | ||
- [Circuits tests](./circuits_test.yml) | ||
- Runs `nargo test` | ||
- [Circuits E2E tests](./circuits_e2e.yml) | ||
- Runs `nargo prove` & `nargo verify` | ||
- [Solidity tests](./contract_test.yml) | ||
- Runs `forge test` | ||
- [TypeScript E2E tests using solidity verifiers](./e2e_test.yml) | ||
- Runs `yarn test:e2e` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Circuits E2E Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: Circuits E2E Tests | ||
runs-on: 32-core-ubuntu-runner | ||
environment: CI | ||
env: | ||
ETHEREUM_JSON_RPC_API_URL: ${{ secrets.ETHEREUM_JSON_RPC_API_URL }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Enable Corepack and Install Yarn 4 | ||
run: | | ||
corepack enable | ||
yarn set version latest | ||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Install Nargo | ||
uses: noir-lang/noirup@v0.1.3 | ||
with: | ||
toolchain: 0.23.0 | ||
|
||
- name: Compile Circuit | ||
run: nargo compile --workspace | ||
|
||
- name: Start Oracle Server | ||
working-directory: ethereum_history_api/oracles | ||
run: | | ||
yarn oracle-server & | ||
ORACLE_SERVER_PID=$! | ||
echo "ORACLE_SERVER_PID=$ORACLE_SERVER_PID" >> $GITHUB_ENV | ||
- name: Generate Proof | ||
run: | | ||
nargo prove --package get_header --oracle-resolver=http://localhost:5555 | ||
nargo prove --package get_account --oracle-resolver=http://localhost:5555 | ||
- name: Veirfy Proof | ||
run: | | ||
nargo verify --package get_header | ||
nargo verify --package get_account | ||
- name: Stop Oracle Server | ||
if: always() | ||
run: kill $ORACLE_SERVER_PID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters