-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test framework * New circuit test framework * Dynamic input file lookup * Update workflow * Try using file: * Change ts-node call to tsx * Test prebuild * Include dotenv for GH actions * pnpm -> npx * Verify jest working * Remove extraneous items in package.json * Update for gh actions * Fix readme script name * Update test timeout, add file checks * Client harness for converting js circuits (#6) * Client harness * Update package link * Remove unused comments * Add provider support * Update version * Remove exec * Remove unused comments * Add tsconfig for automation * Update workflow * Tweak harness deps * Let harness use local client dependency * Update package structure * Update tests * Update gh workflow
- Loading branch information
Showing
105 changed files
with
9,725 additions
and
7 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,38 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Jest Testing | ||
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: Build Client | ||
working-directory: ./client | ||
run: npm install && npm run build | ||
|
||
- name: Install Harness dependencies | ||
working-directory: ./harness | ||
run: npm install | ||
|
||
- name: Run Integration Tests | ||
working-directory: ./harness | ||
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 |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.env | ||
.DS_Store | ||
node_modules | ||
dist | ||
data | ||
build | ||
build | ||
debug/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// For external export | ||
|
||
import { compile } from "@axiom-crypto/circuit"; | ||
import { run } from "@axiom-crypto/circuit"; | ||
import { sendQuery } from "./sendQuery"; | ||
|
||
export { compile, run, sendQuery }; |
Oops, something went wrong.