Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add forge support #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on:
push:
branches:
- master
pull_request:

jobs:
run-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
- name: Install dev dependencies
run: npm install

- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly

- name: Run tests
run: forge test -f $JSON_RPC_URL
6 changes: 6 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[default]
src = 'contracts'
out = 'out'
libs = ['lib']

# See more config options https://github.com/gakonst/foundry/tree/master/config
5 changes: 3 additions & 2 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
yamV3/=lib/yamV3/contracts/
ds-test/=lib/ds-test/src/
openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/
uma/=lib/uma/packages/core/contracts/
@openzeppelin/=lib/openzeppelin-contracts/
openzeppelin-contracts/=lib/openzeppelin-contracts/contracts
uma/=lib/uma/packages/core/contracts/
92 changes: 0 additions & 92 deletions truffle-config.js

This file was deleted.