Skip to content

Staging

Staging #27

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ master, staging ]
pull_request:
branches: [ master, staging ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ui
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Set up environment and run tests
env:
NEXT_PUBLIC_HUBSPOT_PORTAL_ID: ${{ secrets.NEXT_PUBLIC_HUBSPOT_PORTAL_ID }}
NEXT_PUBLIC_HUBSPOT_FORM_ID: ${{ secrets.NEXT_PUBLIC_HUBSPOT_FORM_ID }}
run: |
npm run build
npm start &
npx playwright test --reporter=dot,list
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: playwright-report
path: ui/playwright-report/
retention-days: 30