From 9a80cf74caf0500a78f98bef97648afd88777200 Mon Sep 17 00:00:00 2001 From: Jim Zhang Date: Tue, 6 Aug 2024 13:57:45 -0400 Subject: [PATCH] Add circuit unit test action Signed-off-by: Jim Zhang --- .github/workflows/circuit-unit-tests.yaml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/circuit-unit-tests.yaml diff --git a/.github/workflows/circuit-unit-tests.yaml b/.github/workflows/circuit-unit-tests.yaml new file mode 100644 index 0000000..fa01b08 --- /dev/null +++ b/.github/workflows/circuit-unit-tests.yaml @@ -0,0 +1,28 @@ +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: Checkout circuits + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run golang e2e tests + working-directory: zkp/js + run: | + npm install + npm t