Add mocha test workflow

This commit is contained in:
Eduardo Antuña Díez 2020-08-04 20:37:37 +02:00 committed by GitHub
parent fa90a867d7
commit 68584a38ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/tests.yml vendored Normal file

@ -0,0 +1,25 @@
name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 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 }}
- run: npm install -g circom@latest
- run: npm install
- name: mocha tests
- run: npm run test