From 52512829db68a31683ca0ae04361f8541946193d Mon Sep 17 00:00:00 2001 From: Saleel Date: Wed, 27 Sep 2023 02:47:27 +0530 Subject: [PATCH] chore: add circuit test to github actions --- .github/workflows/contract-tests.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/contract-tests.yml b/.github/workflows/contract-tests.yml index 6805820a..d260c8c8 100644 --- a/.github/workflows/contract-tests.yml +++ b/.github/workflows/contract-tests.yml @@ -4,24 +4,39 @@ on: [push, pull_request] jobs: + circuits: + name: circuits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: 18 + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run tests + working-directory: packages/circuits + run: yarn test + contracts: name: contracts runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - submodules: recursive - name: Install Node.js uses: actions/setup-node@v2 with: node-version: 18 - - - name: Install Yarn - run: npm install -g yarn + cache: 'yarn' - name: Install dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1