Skip to content

Home page automation #91

Home page automation

Home page automation #91

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 &
env:
PORT: 3001
VITE_PARSEABLE_URL: https://demo.parseable.com
VITE_BASIC_AUTH: true
VITE_USERNAME: admin
VITE_PASSWORD: admin
- name: Echo
run: |
echo "PORT: $PORT"
echo "VITE_PARSEABLE_URL: $VITE_PARSEABLE_URL"
echo "VITE_BASIC_AUTH: $VITE_BASIC_AUTH"
echo "VITE_USERNAME: $VITE_USERNAME"
echo "VITE_PASSWORD: $VITE_PASSWORD"
- 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