diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index f293852d..4d19651c 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -63,10 +63,13 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' - name: Compile run: yarn build - - name: Run node in background for integration tests - run: npx hardhat --tsconfig tsconfig.testing.json node --hostname 127.0.0.1 --fork https://mainnet.infura.io/v3/${{ secrets.INFURA }} & + - name: Run mainnet node in background for integration tests + run: npx hardhat --tsconfig tsconfig.testing.json node --hostname 127.0.0.1 --fork ${{ secrets.RPC_URL_MAINNET }} & + - name: Run Polygon node in background for integration tests + run: npx hardhat --tsconfig tsconfig.testing.json --config hardhat.config.polygon.ts node --hostname 127.0.0.1 --fork ${{ secrets.RPC_URL_POLYGON }} --port 8137 & - name: Test run: yarn test env: CI: true - INFURA: ${{ secrets.INFURA }} + RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }} + RPC_URL_POLYGON: ${{ secrets.RPC_URL_POLYGON }}