Files
radicle-desktop/.github/workflows/e2e.yaml
T
Rūdolfs Ošiņš c01f1a9a8a Run e2e tests against a production build
The dev server's unbundled modules made each page load take seconds, which
is most of the time a test spends; E2E_DEV_SERVER=1 keeps the dev server.
Each run writes a JSON report, and CI uses two workers now that the
dropped keep-alive connections behind the flakiness are fixed.
2026-10-01 18:16:29 +02:00

49 lines
1.2 KiB
YAML

on:
pull_request:
push:
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
e2e:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.61.1-noble
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
- run: |
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
pkg-config \
xz-utils \
libssl-dev \
libxdo-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
libwebkit2gtk-4.1-dev \
libjavascriptcoregtk-4.1-dev \
openssh-client
- run: npm ci
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Cache heartwood binaries
uses: actions/cache@v5
with:
path: tests/tmp/bin
key: heartwood-${{ hashFiles('tests/support/heartwood-release') }}
- run: scripts/install-binaries
- run: npm run build:http
- run: mkdir -p tests/artifacts
- name: Run e2e tests
run: npm run test:e2e