fix: query schema calculation #161
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: Test | |
on: | |
push: | |
branches: | |
- main | |
- rc1 | |
- rc2 | |
pull_request: | |
jobs: | |
circuit-js: | |
name: JS Circuit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
working-directory: ./circuit/js | |
run: npm install | |
- name: Run Unit Tests | |
working-directory: ./circuit/js | |
run: | | |
export PROVIDER_URI_GOERLI=${{ secrets.PROVIDER_URI_GOERLI }} | |
ANVIL_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | |
export PRIVATE_KEY=$ANVIL_PRIVATE_KEY # just needs to be in the correct format, no tx is sent in unit tests | |
export PRIVATE_KEY_GOERLI=$ANVIL_PRIVATE_KEY | |
npm run test | |
harness: | |
name: Harness Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
- name: Set all packages to local and build | |
working-directory: ./ | |
run: npm run local ci | |
- name: Run Integration Tests (Sepolia) | |
working-directory: ./harness | |
run: | | |
export PROVIDER_URI_SEPOLIA=${{ secrets.PROVIDER_URI_SEPOLIA }} | |
ANVIL_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | |
export PRIVATE_KEY=$ANVIL_PRIVATE_KEY # just needs to be in the correct format, no tx is sent in unit tests | |
export PRIVATE_KEY_SEPOLIA=$ANVIL_PRIVATE_KEY | |
npm run test test/unit/sepolia.test.ts |