From 3b68b069efefa7376c82979c4af532b3cf3ac1d5 Mon Sep 17 00:00:00 2001 From: Saleel Date: Wed, 7 Feb 2024 04:30:27 +0530 Subject: [PATCH] add helpers tests to GH actions --- .circleci/config.yml | 22 ---------------------- .github/workflows/action.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 22 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 489824cf6..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,22 +0,0 @@ -# version: 2.1 -# orbs: -# node: circleci/node@5.1.0 -# rust: circleci/rust@1.6.0 -# jobs: -# run_circuit_tests: -# docker: -# - image: saleel/circom:2.1.6 -# steps: -# - checkout: -# path: ~/zk-email-verify -# - node/install-packages: -# pkg-manager: yarn -# app-dir: ~/zk-email-verify -# - run: -# command: yarn test -w 2 -# name: Run circom tests -# working_directory: ~/zk-email-verify/packages/circuits -# workflows: -# build_test: -# jobs: -# - run_circuit_tests diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 630193abe..0c9e86ce8 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -42,3 +42,31 @@ jobs: - name: Run Tests working-directory: ./packages/circuits run: yarn test + + run_helpers_tests: + runs-on: ubuntu-latest + environment: development + steps: + - uses: actions/checkout@v3 + + - name: Set Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'yarn' + + - name: Install Yarn dependencies + working-directory: ./packages/helpers + run: yarn install + + - name: Run test + working-directory: ./packages/helpers + run: yarn test + + - name: Run build + working-directory: ./packages/helpers + run: yarn build + + - name: Run Tests + working-directory: ./packages/helpers + run: yarn test