Skip to content

How to display the html content as a comment or as job action in a PR? #319

@ranouf

Description

@ranouf

Here is the action i use :

  - name: HTML Preview
    id: html_preview
    uses: pavi2410/html-preview-action@v4
    with:
      html_file: ./src/db/jest_html_reporters.html
      job_summary: true

In the details of the action I can see:

sk-jestandts@1.0.0 test
jest
PASS tests/api.test.ts
✓ Fetch users from local Supabase instance (39 ms)
📦 report is created on: /home/runner/work/X/Y/src/db/jest_html_reporters.html
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 1.977 s
Ran all test suites.
0s
Run pavi2410/html-preview-action@v4
with:
html_file: ./src/db/jest_html_reporters.html
job_summary: true
env:
SUPABASE_INTERNAL_IMAGE_REGISTRY: ghcr.io

Is there an option for that? What do you suggest?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions