-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move circuits and contracts into new subfolder * Change lib name and fix contracts & circuits tests * Move TS code * Remove FE code * Simplify vite config * Pre working step * Fix ts_test action * Don't run static tools on dist * Update symlink * Fix circuit path * Run e2e tests in a non-concurrent way
- Loading branch information
1 parent
b9b82f5
commit 5d2943c
Showing
169 changed files
with
29,334 additions
and
1,136 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,6 @@ jobs: | |
environment: CI | ||
env: | ||
ETHEREUM_JSON_RPC_API_URL: ${{ secrets.ETHEREUM_JSON_RPC_API_URL }} | ||
defaults: | ||
run: | ||
working-directory: packages/noir-ethereum-api | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -30,45 +27,51 @@ jobs: | |
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Run Unit Tests | ||
run: yarn test:unit | ||
|
||
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.23.0 | ||
|
||
- name: Compile Circuit | ||
run: nargo compile --package main | ||
run: nargo compile --package ethereum_history_api | ||
|
||
- 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 main --oracle-resolver=http://localhost:5555 | ||
run: nargo prove --package ethereum_history_api --oracle-resolver=http://localhost:5555 | ||
|
||
- name: Run nargo codegen-verifier | ||
run: nargo codegen-verifier --package main | ||
run: nargo codegen-verifier --package ethereum_history_api | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Compile Smart Contract | ||
working-directory: ethereum_history_api/contracts | ||
run: forge build | ||
|
||
- name: Run TypeScript Build | ||
run: yarn build:all | ||
|
||
- name: Run Unit Tests | ||
working-directory: ethereum_history_api/oracles | ||
run: yarn test:unit | ||
|
||
- name: Start Anvil | ||
run: | | ||
anvil & | ||
ANVIL_PID=$! | ||
echo "ANVIL_PID=$ANVIL_PID" >> $GITHUB_ENV | ||
- name: Compile Smart Contract | ||
working-directory: contracts | ||
run: forge build | ||
|
||
- name: Run e2e Tests | ||
working-directory: ethereum_history_api/tests | ||
run: yarn test:e2e | ||
|
||
- name: Stop Anvil | ||
|
Oops, something went wrong.