Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 253ba55

Browse files
authored
Deploy Playwright html report to Netlify (#11923)
* Deploy Playwright html report to Netlify Signed-off-by: Michael Telatynski <[email protected]> * Simplify Signed-off-by: Michael Telatynski <[email protected]> --------- Signed-off-by: Michael Telatynski <[email protected]>
1 parent 33d527e commit 253ba55

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/end-to-end-tests.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
name: Report results
110110
needs: tests
111111
runs-on: ubuntu-latest
112+
environment: Netlify
112113
if: always()
113114
permissions:
114115
statuses: write
@@ -146,3 +147,15 @@ jobs:
146147
context: ${{ github.workflow }} / end-to-end-tests
147148
sha: ${{ github.event.workflow_run.head_sha }}
148149
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
150+
151+
- name: 📤 Deploy to Netlify
152+
uses: matrix-org/netlify-pr-preview@v2
153+
with:
154+
path: playwright-report
155+
owner: ${{ github.event.workflow_run.head_repository.owner.login }}
156+
branch: ${{ github.event.workflow_run.head_branch }}
157+
revision: ${{ github.event.workflow_run.head_sha }}
158+
token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
159+
site_id: ${{ secrets.NETLIFY_SITE_ID }}
160+
desc: Playwright Report
161+
deployment_env: EndToEndTests

0 commit comments

Comments
 (0)