Skip to content

Commit 138933c

Browse files
authored
devops: stop publishing the merged HTML test report (#43693)
1 parent e12bcaf commit 138933c

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

‎.github/workflows/create_test_report.yml‎

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ jobs:
1212
permissions:
1313
pull-requests: write
1414
checks: write
15-
statuses: write
1615
contents: read # This is required for actions/checkout to succeed
17-
if: ${{ github.event.workflow_run.event == 'pull_request' || github.event.workflow_run.event == 'push' }}
16+
if: ${{ github.event.workflow_run.event == 'pull_request' }}
1817
runs-on: ubuntu-latest
1918
outputs:
2019
pr_number: ${{ steps.pr.outputs.number }}
@@ -52,14 +51,6 @@ jobs:
5251
echo "has_failures=false" >> "$GITHUB_OUTPUT"
5352
fi
5453
55-
- name: Upload HTML report
56-
id: upload-report
57-
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
58-
with:
59-
path: playwright-report/index.html
60-
archive: false # Upload as a single, browser-openable file (no zip)
61-
retention-days: 30
62-
6354
# The triggering workflow ran on a pull_request event, but workflow_run.pull_requests is
6455
# empty for PRs from forks, so resolve the number from the head ref instead. gh's head
6556
# filter wants "owner:branch" for forks but a bare branch for same-repo PRs.
@@ -92,7 +83,6 @@ jobs:
9283
if: ${{ steps.pr.outputs.number }}
9384
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
9485
env:
95-
HTML_REPORT_URL: ${{ steps.upload-report.outputs.artifact-url }}
9686
PR_NUMBER: ${{ steps.pr.outputs.number }}
9787
with:
9888
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -104,20 +94,6 @@ jobs:
10494
core,
10595
reportFile: process.env.MARKDOWN_OUTPUT_FILE,
10696
prNumber: +process.env.PR_NUMBER,
107-
reportUrl: process.env.HTML_REPORT_URL,
108-
});
109-
110-
- name: Publish Report URL as Commit Status
111-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
112-
with:
113-
script: |
114-
await github.rest.repos.createCommitStatus({
115-
owner: context.repo.owner,
116-
repo: context.repo.repo,
117-
sha: '${{ github.event.workflow_run.head_sha }}',
118-
state: 'success',
119-
target_url: '${{ steps.upload-report.outputs.artifact-url }}',
120-
context: 'HTML Report (${{ github.event.workflow_run.name }})',
12197
});
12298
12399
triage:

‎.github/workflows/merge.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
22
testDir: '../../tests',
3-
reporter: [[require.resolve('../../tests/config/markdownReporter')], ['html']],
3+
reporter: [[require.resolve('../../tests/config/markdownReporter')]],
44
};

0 commit comments

Comments
 (0)