Skip to content

Commit

Permalink
refactor(workflows/ci): reads supported Foundry version from env vari…
Browse files Browse the repository at this point in the history
…able (#271)
  • Loading branch information
arthurgousset authored Jun 20, 2024
1 parent 6c2e47d commit 2f7e5f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ env:
NODE_MODULE_CACHE_VERSION: 5
NODE_OPTIONS: '--max-old-space-size=4096'
TERM: dumb
# Supported Foundry version defined at celo-org (GitHub organisation) level, for consistency across workflows.
SUPPORTED_FOUNDRY_VERSION: ${{ vars.SUPPORTED_FOUNDRY_VERSION }}

# EXAMPLE on debug ssh step
# - name: Setup tmate session
Expand Down Expand Up @@ -235,7 +237,7 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: "nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9"
version: ${{ env.SUPPORTED_FOUNDRY_VERSION }}
# NODE_OPTIONS="--experimental-vm-modules" is needed because @viem/anvil uses dynamic imports
- name: Run tests
run: |
Expand Down

0 comments on commit 2f7e5f6

Please sign in to comment.