diff --git a/.github/workflows/e2e_tests.yml b/.github/workflows/e2e_tests.yml index dcf2cda..827672b 100644 --- a/.github/workflows/e2e_tests.yml +++ b/.github/workflows/e2e_tests.yml @@ -20,7 +20,7 @@ on: phrase: description: 'The mnemonic phrase for the account to use in testing' required: false - type: text + type: string concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || diff --git a/Dockerfile b/Dockerfile index 55c1d76..f7d47ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ # syntax=docker/dockerfile:1 FROM --platform=linux/amd64 synthetixio/docker-e2e:18.16-ubuntu as base +# Recent e2e test failures for all dApps were due to inconsistent network configurations in the CI setup. +# GitHub Actions infrastructure can resolve localhost inconsistently (IPv4 or IPv6). +# To address this, we set NODE_OPTIONS=--dns-result-order=ipv4first to prioritize IPv4 DNS resolution. +# For more details, see: https://github.com/cypress-io/cypress/issues/27962 +ENV NODE_OPTIONS=--dns-result-order=ipv4first + RUN mkdir /app WORKDIR /app