Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run-e2e-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
7 changes: 6 additions & 1 deletion e2e/seeder/anvil-manager.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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();
Expand Down
Loading