From 2f7e5f6e6a06c632409a5a6157917991a1d18e0f Mon Sep 17 00:00:00 2001 From: Arthur Gousset <46296830+arthurgousset@users.noreply.github.com> Date: Thu, 20 Jun 2024 09:12:49 +0100 Subject: [PATCH] refactor(workflows/ci): reads supported Foundry version from env variable (#271) --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00e3a3851..62939a7fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: |