Run build topsorted instead of typecheck #242
Workflow file for this run
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
name: TS tests | |
on: [push] | |
jobs: | |
test: | |
name: yarn test | |
runs-on: ubuntu-latest | |
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: Run Unit Tests | |
working-directory: ethereum_history_api/oracles | |
run: yarn test:unit | |
- name: Install Nargo | |
uses: noir-lang/[email protected] | |
with: | |
toolchain: 0.23.0 | |
- name: Compile Circuit | |
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 ethereum_history_api --oracle-resolver=http://localhost:5555 | |
- name: Run nargo codegen-verifier | |
run: nargo codegen-verifier --package ethereum_history_api | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Start Anvil | |
run: | | |
anvil & | |
ANVIL_PID=$! | |
echo "ANVIL_PID=$ANVIL_PID" >> $GITHUB_ENV | |
- name: Compile Smart Contract | |
working-directory: ethereum_history_api/contracts | |
run: forge build | |
- name: Run e2e Tests | |
working-directory: ethereum_history_api/tests | |
run: yarn test:e2e | |
- name: Stop Anvil | |
if: always() | |
run: kill $ANVIL_PID | |
- name: Stop Oracle Server | |
if: always() | |
run: kill $ORACLE_SERVER_PID |