Skip to content

Commit 9d4f3ad

Browse files
pftgclaude
andcommitted
feat: add job summary with report links to CI
Both Functional Test and Test Report Upload jobs now write artifact links to GITHUB_STEP_SUMMARY — visible in the Actions UI job page without needing a PR comment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent acd6fcb commit 9d4f3ad

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,19 @@ jobs:
111111
| Full report with images | ${{ steps.upload-screenshots.outputs.report-full-url || 'N/A' }} |
112112
| [All artifacts](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts) | Browse all |
113113
114+
- name: Job summary with report links
115+
if: failure()
116+
run: |
117+
cat >> "$GITHUB_STEP_SUMMARY" <<EOF
118+
### Screenshot diffs detected
119+
120+
| Artifact | Link |
121+
|----------|------|
122+
| HTML report (inline) | ${{ steps.upload-screenshots.outputs.report-url || 'N/A' }} |
123+
| Full report with images | ${{ steps.upload-screenshots.outputs.report-full-url || 'N/A' }} |
124+
| [All artifacts](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts) | Browse all |
125+
EOF
126+
114127
- name: Update comment on success
115128
if: success() && github.event_name == 'pull_request' && steps.find-comment.outputs.comment-id != ''
116129
uses: peter-evans/create-or-update-comment@v5
@@ -227,7 +240,7 @@ jobs:
227240
name: Test Report Upload
228241
if: github.event_name == 'workflow_dispatch'
229242
runs-on: ubuntu-latest
230-
timeout-minutes: 3
243+
timeout-minutes: 5
231244
steps:
232245
- uses: actions/checkout@v6
233246

@@ -240,5 +253,17 @@ jobs:
240253
run: bin/rake 'report:sample[embed]'
241254

242255
- uses: ./.github/actions/upload-screenshots
256+
id: upload-screenshots
243257
with:
244258
name: test-report
259+
260+
- name: Job summary with report links
261+
run: |
262+
cat >> "$GITHUB_STEP_SUMMARY" <<'EOF'
263+
### SnapDiff Report
264+
265+
| Artifact | Link |
266+
|----------|------|
267+
| HTML report (inline) | ${{ steps.upload-screenshots.outputs.report-url || 'N/A' }} |
268+
| Full report with images | ${{ steps.upload-screenshots.outputs.report-full-url || 'N/A' }} |
269+
EOF

0 commit comments

Comments
 (0)