Skip to content

chore: add github action for foundry tests #2

chore: add github action for foundry tests

chore: add github action for foundry tests #2

Workflow file for this run

name: contract-tests
on:
[push, pull_request]
jobs:
check:
name: Email Wallet 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: 14
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run tests
working-directory: packages/contracts
run: forge test -vvv
- name: Run snapshot
run: forge snapshot