Skip to content

patch mud for demo

patch mud for demo #28

Workflow file for this run

name: End-to-end tests
on:
push:
branches:
- main
pull_request:
jobs:
main:
name: Run end-to-end tests
runs-on: ubuntu-latest
services:
postgres:
image: ghcr.io/latticexyz/postgres-wal-logical:latest
env:
POSTGRES_USER: runner
POSTGRES_DB: mode_ephemeral
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup
uses: ./.github/actions/setup
- name: Build
uses: ./.github/actions/build
- name: Install end-to-end testing dependencies
working-directory: ./e2e
run: pnpm install
- name: Install Playwright Dependencies
working-directory: ./e2e
run: pnpm run playwright-install
- name: Clean end-to-end project
working-directory: ./e2e
run: pnpm run clean
- name: Build end-to-end project
working-directory: ./e2e
run: pnpm run build
- name: Outdated files, run `pnpm run build` in `e2e` and commit them
uses: ./.github/actions/require-empty-diff
- name: Run sync tests
working-directory: ./e2e/packages/sync-test
run: pnpm test