ci: make E2E report jobs non-blocking by moving to separate workflow (#26157)

* ci: make E2E report jobs non-blocking by moving to separate workflow

Co-Authored-By: [email protected] <[email protected]>

* ci: minimize permissions in e2e-report workflow

Co-Authored-By: [email protected] <[email protected]>

* ci: refactor to reuse existing workflow files via workflow_call

Co-Authored-By: [email protected] <[email protected]>

* ci: add workflow_dispatch trigger for manual testing of E2E report workflow

Co-Authored-By: [email protected] <[email protected]>

* ci: simplify workflow_dispatch to only require pr_number input

Co-Authored-By: [email protected] <[email protected]>

* ci: remove secrets inheritance from merge-reports for fork PR security

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Keith WilliamsandDevin AI authored and GitHub committed 2025-12-23 19:16:36 +00:00
1 parent b62493235c
commit 9256d306b9
4 files changed
+260 -40

No files matched your search

-29
View File
@@ -228,35 +228,6 @@ jobs:
uses: ./.github/workflows/nextjs-bundle-analysis.yml
secrets: inherit
merge-reports:
name: Merge reports
if: ${{ !cancelled() && needs.prepare.outputs.run-e2e == 'true' && needs.prepare.outputs.has-files-requiring-all-checks == 'true' && (needs.e2e.result == 'failure' || needs.e2e-embed.result == 'failure' || needs.e2e-embed-react.result == 'failure' || needs.e2e-app-store.result == 'failure') }}
needs: [prepare, e2e, e2e-embed, e2e-embed-react, e2e-app-store]
uses: ./.github/workflows/merge-reports.yml
secrets: inherit
publish-report:
name: Publish HTML report
if: ${{ !cancelled() && needs.prepare.outputs.run-e2e == 'true' && needs.prepare.outputs.has-files-requiring-all-checks == 'true' && (needs.e2e.result == 'failure' || needs.e2e-embed.result == 'failure' || needs.e2e-embed-react.result == 'failure' || needs.e2e-app-store.result == 'failure') }}
permissions:
contents: write
issues: write
pull-requests: write
needs: [prepare, merge-reports, e2e, e2e-embed, e2e-embed-react, e2e-app-store]
uses: ./.github/workflows/publish-report.yml
secrets: inherit
cleanup-report:
name: Cleanup HTML report
if: ${{ !cancelled() && needs.prepare.outputs.run-e2e == 'true' && (github.event.pull_request.merged == true || github.event.pull_request.state == 'closed') }}
permissions:
contents: write
issues: write
pull-requests: write
needs: [prepare, publish-report]
uses: ./.github/workflows/cleanup-report.yml
secrets: inherit
required:
needs:
[