Skip to content

Commit

Permalink
chore: add github action for foundry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Sep 26, 2023
1 parent 42a9ee3 commit 4c31cb0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: unit-tests

on:
[push, pull_request]

jobs:
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

- 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

0 comments on commit 4c31cb0

Please sign in to comment.