From 97e0939c9b51e8216aa36733311f81669ae4d694 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <72015889+0xtekgrinder@users.noreply.github.com> Date: Sat, 4 Nov 2023 05:33:56 -0400 Subject: [PATCH] chore: add node rpc env in ci and ci-deep (#11) --- .github/workflows/ci-deep.yml | 13 +++++++++++++ .github/workflows/ci.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/ci-deep.yml b/.github/workflows/ci-deep.yml index 2bff665..dd92468 100644 --- a/.github/workflows/ci-deep.yml +++ b/.github/workflows/ci-deep.yml @@ -94,6 +94,11 @@ jobs: - name: Run Foundry tests run: yarn test:unit + env: + ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} + ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} + ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} + ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} - name: "Add Unit Test Summary" run: | @@ -126,6 +131,10 @@ jobs: env: FOUNDRY_INVARIANT_RUNS: ${{ github.event.inputs.invariantRuns }} FOUNDRY_INVARIANT_DEPTH: ${{ github.event.inputs.invariantDepth }} + ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} + ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} + ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} + ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} - name: "Add Invariant Test Summary" run: | @@ -157,6 +166,10 @@ jobs: run: yarn test:fuzz env: FOUNDRY_FUZZ_RUNS: ${{ github.event.inputs.fuzzRuns }} + ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} + ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} + ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} + ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} - name: "Add Fuzz Test Summary" run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5faf66..7763f68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,6 +83,11 @@ jobs: - name: Run Foundry tests run: yarn test:unit + env: + ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} + ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} + ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} + ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} - name: "Add Unit Test Summary" run: | @@ -115,6 +120,10 @@ jobs: env: FOUNDRY_INVARIANT_RUNS: "8" FOUNDRY_INVARIANT_DEPTH: "256" + ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} + ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} + ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} + ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} - name: "Add Invariant Test Summary" run: | @@ -146,6 +155,10 @@ jobs: run: npm run test:fuzz env: FOUNDRY_FUZZ_RUNS: "5000" + ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} + ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} + ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} + ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} - name: "Add Fuzz Test Summary" run: |