You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
864 B

name: Test
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install c dependencies
run: |
sudo apt install -y nlohmann-json3-dev
sudo apt install -y nasm
- name: Prepare circom
run: |
# once circom binary is published, instead of compiling from source
# every time, use the published binaries
git clone https://github.com/iden3/circom.git
cd circom
cargo build --release
cargo install --path circom
- name: run tests
run: |
npm cache clean --force
npm install
npm run test