Skip to content

Commit

Permalink
chore: add circuit test to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Sep 26, 2023
1 parent 4c31cb0 commit a70244f
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 35 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/contract-tests.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: unit-tests

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

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 18
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run tests
working-directory: packages/contracts
run: yarn test
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"private": true,
"version": "1.0.0",
"description": "A smart contract wallet controlled using email",
"packageManager": "[email protected]",
"engines": {
"node": "18"
},
Expand Down

0 comments on commit a70244f

Please sign in to comment.