From f1597577b5810333b0f4c8bb3383d72ea52af8c4 Mon Sep 17 00:00:00 2001 From: Playwright Service <89237858+playwrightmachine@users.noreply.github.com> Date: Mon, 14 Aug 2023 15:43:24 -0700 Subject: [PATCH] cherry-pick(#26473): docs(merge): add screenshot, print url, fix name (#26474) This PR cherry-picks the following commits: - f75295224a163c089dbc27e148a5c726ee31523c Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- docs/src/test-sharding-js.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/src/test-sharding-js.md b/docs/src/test-sharding-js.md index be15077071..7816f541ee 100644 --- a/docs/src/test-sharding-js.md +++ b/docs/src/test-sharding-js.md @@ -55,7 +55,7 @@ on: pull_request: branches: [ main, master ] jobs: - test: + playwright-tests: timeout-minutes: 60 runs-on: ubuntu-latest strategy: @@ -123,6 +123,8 @@ jobs: To ensure the execution order, we make `merge-reports` job [depend](https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow#defining-prerequisite-jobs) on our sharded `playwright-tests` job. +image + ## Publishing report on the web In the previous example, the HTML report is uploaded to GitHub Actions Artifacts. This is easy to configure, but downloading HTML report as a zip file is not very convenient. @@ -152,6 +154,7 @@ We can utilize Azure Storage's static websites hosting capabilities to easily an run: | REPORT_DIR='run-${{ github.run_id }}-${{ github.run_attempt }}' azcopy cp --recursive "./playwright-report/*" "https://.blob.core.windows.net/\$web/$REPORT_DIR" + echo "::notice title=HTML report url::https://.z1.web.core.windows.net/$REPORT_DIR/index.html" env: AZCOPY_AUTO_LOGIN_TYPE: SPN AZCOPY_SPA_APPLICATION_ID: '${{ secrets.AZCOPY_SPA_APPLICATION_ID }}'