diff --git a/.github/workflows/run-e2e-workflow.yml b/.github/workflows/run-e2e-workflow.yml index 0254423c91cc..5e12c4786c80 100644 --- a/.github/workflows/run-e2e-workflow.yml +++ b/.github/workflows/run-e2e-workflow.yml @@ -113,7 +113,7 @@ jobs: echo "✅ System images installed" - name: Set up E2E environment - uses: MetaMask/github-tools/.github/actions/setup-e2e-env@211837de0fe5589cb88bd78bd2fd3237e1e97f48 + uses: MetaMask/github-tools/.github/actions/setup-e2e-env@d7c9325cf6f59697e47e875c2af0cd0716c7c719 with: platform: ${{ inputs.platform }} setup-simulator: ${{ inputs.platform == 'ios' }} diff --git a/e2e/seeder/anvil-manager.ts b/e2e/seeder/anvil-manager.ts index 49bedfc7208d..531b450f2ff4 100644 --- a/e2e/seeder/anvil-manager.ts +++ b/e2e/seeder/anvil-manager.ts @@ -1,12 +1,13 @@ /* eslint-disable import/no-nodejs-modules */ import { createAnvil, Anvil as AnvilType } from '@viem/anvil'; import { createServer } from 'net'; -import fs from 'fs'; import path from 'path'; import { createAnvilClients } from './anvil-clients'; import { AnvilPort } from '../framework/fixtures/FixtureUtils'; import { AnvilNodeOptions } from '../framework/types'; import { createLogger } from '../framework/logger'; +import { execSync } from 'child_process'; +import fs from 'fs'; const logger = createLogger({ name: 'AnvilManager', @@ -161,6 +162,10 @@ class AnvilManager { 'anvil', ); this.anvilBinary = fs.existsSync(localAnvil) ? localAnvil : 'anvil'; + const versionOutput = execSync(`${this.anvilBinary} --version`, { + encoding: 'utf-8', + }); + logger.debug('Anvil Version:', versionOutput); // First try the configured port, then find an available one if it fails const initialPort = opts.port || AnvilPort();