Skip to content

Commit

Permalink
Installing foundry and running anvil in the github actions;
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Gustavo Abou Hatem De Liz committed Oct 17, 2023
1 parent 1fbd05e commit d8ae99b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,20 @@ jobs:
uses: ./.github/actions/setup
- name: Lint & format code
run: pnpm format & pnpm lint

foundry:
name: Foundry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

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

test:
name: Test
needs: install
Expand All @@ -43,7 +56,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
- name: Run local fork in background for integration tests
run: npx hardhat --tsconfig tsconfig.testing.json node --hostname 127.0.0.1 --fork ${{ secrets.ETHEREUM_RPC_URL }} &
run: anvil --fork-url $(. ./.env && echo $ETHEREUM_RPC_URL) &
- name: Test
run: pnpm test:ci
env:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"test:ci": "vitest run",
"changeset": "changeset",
"changeset:release": "pnpm build && changeset publish",
"node": "npx hardhat node --tsconfig tsconfig.testing.json --fork $(. ./.env && echo $ETHEREUM_RPC_URL)",
"node:anvil": "anvil --fork-url $(. ./.env && echo $ETHEREUM_RPC_URL)"
"node": "anvil --fork-url $(. ./.env && echo $ETHEREUM_RPC_URL)"
},
"dependencies": {
"async-retry": "^1.3.3",
Expand Down

0 comments on commit d8ae99b

Please sign in to comment.