# Woodpecker CI pipeline for Helix Engage
#
# Triggered on push or manual run.
# Runs E2E smoke tests against live EC2 deployment.

when:
  - event: [push, manual]

steps:
  e2e-tests:
    image: mcr.microsoft.com/playwright:v1.52.0-noble
    commands:
      - node --version
      - npm install --registry=https://registry.npmjs.org --ignore-scripts 2>&1 || npm install --registry=https://registry.npmjs.org --ignore-scripts --legacy-peer-deps
      - npx playwright install chromium
      - npx playwright test --reporter=list
    environment:
      E2E_BASE_URL: https://ramaiah.engage.healix360.net
      NODE_OPTIONS: --max-old-space-size=4096
