Skip to content

Commit

Permalink
feat: Add forge support
Browse files Browse the repository at this point in the history
  • Loading branch information
delegatedev committed Mar 8, 2022
1 parent 169d1fa commit 58d9718
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 94 deletions.
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.

0 comments on commit 58d9718

Please sign in to comment.