mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 07:28:05 -05:00
Co-authored-by: Franklin Delehelle <franklin.delehelle@odena.eu> Co-authored-by: Alexandre Belling <alexandrebelling8@gmail.com> Co-authored-by: Pedro Novais <jpvnovais@gmail.com> Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com> Co-authored-by: Bradley Bown <bradbown@googlemail.com> Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com> Co-authored-by: Nikolai Golub <nikolai.golub@consensys.net> Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com> Co-authored-by: jonesho <81145364+jonesho@users.noreply.github.com> Co-authored-by: Gaurav Ahuja <gauravahuja9@gmail.com> Co-authored-by: Azam Soleimanian <49027816+Soleimani193@users.noreply.github.com> Co-authored-by: Andrei A <andrei.alexandru@consensys.net> Co-authored-by: Arijit Dutta <37040536+arijitdutta67@users.noreply.github.com> Co-authored-by: Gautam Botrel <gautam.botrel@gmail.com> Co-authored-by: Ivo Kubjas <ivo.kubjas@consensys.net> Co-authored-by: gusiri <dreamerty@postech.ac.kr> Co-authored-by: FlorianHuc <florian.huc@gmail.com> Co-authored-by: Arya Tabaie <arya.pourtabatabaie@gmail.com> Co-authored-by: Julink <julien.fontanel@consensys.net> Co-authored-by: Bogdan Ursu <bogdanursuoffice@gmail.com> Co-authored-by: Jakub Trąd <jakubtrad@gmail.com> Co-authored-by: Alessandro Sforzin <alessandro.sforzin@consensys.net> Co-authored-by: Olivier Bégassat <olivier.begassat.cours@gmail.com> Co-authored-by: Steve Huang <97596526+stevehuangc7s@users.noreply.github.com> Co-authored-by: bkolad <blazejkolad@gmail.com> Co-authored-by: fadyabuhatoum1 <139905934+fadyabuhatoum1@users.noreply.github.com> Co-authored-by: Blas Rodriguez Irizar <rodrigblas@gmail.com> Co-authored-by: Eduardo Andrade <eduardofandrade@gmail.com> Co-authored-by: Ivo Kubjas <tsimmm@gmail.com> Co-authored-by: Ludcour <ludovic.courcelas@consensys.net> Co-authored-by: m4sterbunny <harrie.bickle@consensys.net> Co-authored-by: Alex Panayi <145478258+alexandrospanayi@users.noreply.github.com> Co-authored-by: Diana Borbe - ConsenSys <diana.borbe@consensys.net> Co-authored-by: ThomasPiellard <thomas.piellard@gmail.com>
69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
name: Run Bridge UI E2E Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'bridge-ui/**'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'bridge-ui/**'
|
|
|
|
jobs:
|
|
run-e2e-tests:
|
|
runs-on: ubuntu-22.04-16core
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- name: Setup nodejs environment
|
|
uses: ./.github/actions/setup-nodejs
|
|
with:
|
|
node-version: 18.17.0
|
|
pnpm-install-options: '--frozen-lockfile --prefer-offline'
|
|
|
|
- name: Install Playwright
|
|
run: pnpm dlx playwright@1.45.3 install --with-deps
|
|
|
|
- name: Build Bridge UI
|
|
run: pnpm run -F bridge-ui build;
|
|
env:
|
|
NEXT_PUBLIC_WALLET_CONNECT_ID: ${{ secrets.PUBLIC_WALLET_CONNECT_ID }}
|
|
NEXT_PUBLIC_INFURA_ID: ${{ secrets.PUBLIC_BRIDGE_UI_INFURA_ID }}
|
|
|
|
- name: Install linux dependencies
|
|
run: |
|
|
sudo apt-get install --no-install-recommends -y xvfb
|
|
|
|
- name: Build synpress cache
|
|
run: xvfb-run pnpm run -F bridge-ui build:cache
|
|
env:
|
|
E2E_TEST_PRIVATE_KEY: ${{ secrets.BRIDGE_UI_E2E_TESTS_PRIVATE_KEY }}
|
|
E2E_TEST_SEED_PHRASE: "test test test test test test test test test test test junk"
|
|
E2E_TEST_WALLET_PASSWORD: "TestPassword!"
|
|
NEXT_PUBLIC_INFURA_ID: ${{ secrets.PUBLIC_BRIDGE_UI_INFURA_ID }}
|
|
|
|
- name: Run tests
|
|
run: xvfb-run pnpm run -F bridge-ui test:e2e:headful
|
|
env:
|
|
CI: "true"
|
|
E2E_TEST_PRIVATE_KEY: ${{ secrets.BRIDGE_UI_E2E_TESTS_PRIVATE_KEY }}
|
|
E2E_TEST_SEED_PHRASE: "test test test test test test test test test test test junk"
|
|
E2E_TEST_WALLET_PASSWORD: "TestPassword!"
|
|
NEXT_PUBLIC_INFURA_ID: ${{ secrets.PUBLIC_BRIDGE_UI_INFURA_ID }}
|
|
|
|
- name: Archive Playwright report
|
|
uses: actions/upload-artifact@v3
|
|
if: failure()
|
|
with:
|
|
name: playwright-report-headful
|
|
path: |
|
|
bridge-ui/playwright-report-headful/
|
|
if-no-files-found: error
|