Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Update delegates.json #1175

Update delegates.json

Update delegates.json #1175

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
e2e_test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
- name: Install
run: yarn install --immutable --immutable-cache --check-cache
- name: Install
run: yarn install --immutable --immutable-cache --check-cache
working-directory: test
# Start zombienet in background
- name: Download polkadot
working-directory: test
run: |
curl -L https://github.com/paritytech/polkadot/releases/latest/download/polkadot -o "${GITHUB_WORKSPACE}/polkadot"
chmod 777 "${GITHUB_WORKSPACE}/polkadot"
echo PATH=$PATH:"${GITHUB_WORKSPACE}" >> $GITHUB_ENV
- name: Display polkadot version
run: polkadot --version
- name: Background Zombienet Server
uses: BerniWittmann/background-server-action@v1
with:
start: cd test; yarn zombienet:native
wait-on: "http://127.0.0.1:9996/metrics"
# Start the web app in background
- name: Background App Server
uses: BerniWittmann/background-server-action@v1
with:
start: yarn dev
wait-on: "http://localhost:1234"
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
working-directory: test
- name: Run Playwright tests
run: yarn test:e2e
working-directory: test
env:
URL: http://127.0.0.1:1234/?rpc=ws://127.0.0.1:9984
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30