Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
22 changes: 22 additions & 0 deletions .github/workflows/run_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: run tests
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: print cur dir
run: pwd

- name: setup circom
run: |
chmod +x ./scripts/setup_circom.sh
./scripts/setup_circom.sh

- name: Install modules
run: npm install

- name: Run tests
run: npm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "tsc --project tsconfig.json && cp -r src/vendors dist/vendors",
"clean": "rm -rf dist types",
"test": "echo 1"
"test": "jest"
},
"keywords": [
"circom",
Expand Down
12 changes: 12 additions & 0 deletions scripts/setup_circom.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# exit on error
set -e

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y
git clone https://github.com/iden3/circom.git
cd circom
cargo build --release
cargo install --path circom

npm install -g snarkjs