Skip to content

Home page automation #92

Home page automation

Home page automation #92

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
PORT: 3001
VITE_PARSEABLE_URL: https://demo.parseable.com
VITE_BASIC_AUTH: true
VITE_USERNAME: admin
VITE_PASSWORD: admin
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Start the development server
run: |
pnpm run dev -- --host --port $PORT > vite.log 2>&1 &
echo $! > vite.pid
env:
PORT: 3001
VITE_PARSEABLE_URL: https://demo.parseable.com
VITE_BASIC_AUTH: true
VITE_USERNAME: admin
VITE_PASSWORD: admin
- name: Wait for the server to be ready
run: |
timeout 30 bash -c 'until curl -sf http://localhost:$PORT; do sleep 1; done'
- name: Run Playwright tests
run: pnpm exec playwright test
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 1