Skip to content

Commit

Permalink
Adds forge tests to github actions and updates Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
xhad committed Mar 13, 2024
1 parent c3c3061 commit 504aa5c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/forge-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Forge Tests

on: push

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Checkout submodules
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
make install
- name: Mainnet Forge tests
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
run: make ci-test rpc=$MAINNET_RPC_URL
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ show :; npx http-server ./coverage

clean :; forge clean

# Testing

ci-test :; forge test --rpc-url ${rpc} --summary --detailed --gas-report

# Build and Deploy

0 comments on commit 504aa5c

Please sign in to comment.