Skip to content

github actions for circuit builds and e2e tests #12

github actions for circuit builds and e2e tests

github actions for circuit builds and e2e tests #12

name: Circuit Unit Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
circuit-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install circom
uses: supplypike/setup-bin@v4
with:
uri: https://github.com/iden3/circom/releases/download/v2.1.9/circom-linux-amd64
name: circom
version: 2.1.9
- name: Checkout circuits
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install circuit dependencies
working-directory: zkp/circuits
run: |
npm install
- name: Run circuit unit tests
working-directory: zkp/js
run: |
npm install
npm t