Merge pull request #98 from hyperledger-labs/hardhat-config #223
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |