ci: publish HTML report to /reports/{pipeline-number}

This commit is contained in:
2026-04-11 14:27:15 +05:30
parent f6554b95d4
commit 33cbe61aec

View File

@@ -1,6 +1,7 @@
# Woodpecker CI pipeline for Helix Engage # Woodpecker CI pipeline for Helix Engage
# #
# Triggered on push or manual run. # Triggered on push or manual run.
# Reports published to operations.healix360.net/reports/{pipeline-number}/
when: when:
- event: [push, manual] - event: [push, manual]
@@ -15,10 +16,16 @@ steps:
e2e-tests: e2e-tests:
image: mcr.microsoft.com/playwright:v1.52.0-noble image: mcr.microsoft.com/playwright:v1.52.0-noble
volumes:
- /opt/fortytwo/test-reports:/test-reports
commands: commands:
- corepack enable - corepack enable
- yarn install --frozen-lockfile || yarn install - yarn install --frozen-lockfile || yarn install
- npx playwright install chromium - npx playwright install chromium
- npx playwright test --reporter=list - mkdir -p /test-reports/${CI_PIPELINE_NUMBER}
- npx playwright test --reporter=list,html
- cp -r playwright-report/* /test-reports/${CI_PIPELINE_NUMBER}/
- echo "Report published to https://operations.healix360.net/reports/${CI_PIPELINE_NUMBER}/"
environment: environment:
E2E_BASE_URL: https://ramaiah.engage.healix360.net E2E_BASE_URL: https://ramaiah.engage.healix360.net
PLAYWRIGHT_HTML_REPORT: playwright-report