Skip to content

test: add end-to-end tests for mobile adaptation #2

test: add end-to-end tests for mobile adaptation

test: add end-to-end tests for mobile adaptation #2

Workflow file for this run

name: Playwright E2E Tests
on:
- pull_request
- workflow_dispatch
jobs:
e2e-test:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps
- name: Start Backend Services
run: |
cd template/nestJs
cp .env.example .env
docker compose up -d
- name: Wait for Backend Services
run: |
echo "Waiting for Backend Services to start..."
timeout 120s bash -c 'until nc -z localhost 3000; do
echo "Backend Services are starting..."
sleep 3
done'
echo "Backend Services are ready!"
cd template/nestJs && docker compose ps
- name: Run E2E tests
run: pnpm test:e2e