Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,29 @@ jobs:
- name: Run browser tests
working-directory: ./acvm_js
run: yarn test:browser

test-acvm_js-rust:
name: Rust Tests
runs-on: ubuntu-latest

strategy:
matrix:
include:
- os: ubuntu
runner: ubuntu-latest
target: wasm32-unknown-unknown

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup toolchain
uses: dtolnay/rust-toolchain@1.66.0
with:
targets: ${{ matrix.target }}

- name: Add wasm32 target
run: cargo install wasm-bindgen-cli --vers "0.2.87" --locked

- name: Run rust tests
run: cargo test
1 change: 1 addition & 0 deletions acvm_js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"scripts": {
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha",
"test:browser": "web-test-runner",
"test:rust": "cargo test",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
},
"devDependencies": {
Expand Down