mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-18 19:10:45 +08:00
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.
49 lines
1.2 KiB
YAML
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
|