From 5ccc2cbb81d9a4943823e275f347d8f7f71a21fd Mon Sep 17 00:00:00 2001 From: cedoor Date: Thu, 9 May 2024 16:35:11 +0100 Subject: [PATCH] ci: add circuit tests to ci --- .github/workflows/production.yml | 3 +++ .github/workflows/pull-requests.yml | 3 +++ package.json | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 055412e..6bc3617 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -48,6 +48,9 @@ jobs: - name: Test libraries run: yarn test:libraries + - name: Test circuits + run: yarn test:circuits + - name: Coveralls uses: coverallsapp/github-action@v2.2.3 with: diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index a600e58..1fb8bc3 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -45,3 +45,6 @@ jobs: - name: Test libraries run: yarn test + + - name: Test circuits + run: yarn test:circuits diff --git a/package.json b/package.json index a1ad400..3cee8b0 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,10 @@ "scripts": { "build": "yarn build:libraries", "build:libraries": "yarn workspaces foreach -A -t --no-private run build", - "test": "yarn test:libraries", + "test": "yarn test:libraries && yarn test:circuits", "test:libraries": "jest --coverage", "test:library": "jest packages/${0}", + "test:circuits": "yarn workspace @semaphore-extensions/identity-proof.circom test", "lint:eslint": "eslint . --ext .js,.ts,.tsx", "lint": "yarn lint:eslint", "lint:fix": "yarn lint:eslint --fix",