diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f4ddbd19..127c36dc 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 @@ -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: diff --git a/package.json b/package.json index b6fbf9c4..6eb9cd76 100644 --- a/package.json +++ b/package.json @@ -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",