Skip to content
file-text

GitHub Action

create-report

v2.0.2 Latest version

create-report

file-text

create-report

An action to create a generic run report

Installation

Copy and paste the following snippet into your .yml file.

              

- name: create-report

uses: michaelhenry/create-report@v2.0.2

Learn more about this action in michaelhenry/create-report

Choose a version

create-report

codecov codebeat badge Test Coverage Maintainability

A Github action for creating generic run report. Currently this action is supporting 3 data format: markdown, html or junit.

Sample workflow:

jobs:
  create-report:
    name: Report using ${{ matrix.os }}
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: michaelhenry/create-report@v2.0.0
      name: create report from a junit file.
      with:
        title: "JUnit report"
        path: samples/sample.junit
        format: junit

Using Markdown

  - uses: michaelhenry/create-report@v2
    name: create report from markdown
    with:
      title: "Markdown report"
      path: samples/sample.md
      format: markdown

Please see samples/sample.md for the sample file which generated this run report.

Screen Shot 2022-04-10 at 23 28 09


Using HTML

  - uses: michaelhenry/create-report@v2
    name: create report from html
    with:
      title: "HTML report"
      path: samples/sample.html
      format: html

Please see samples/sample.html for the sample file which generated this run report.

Screen Shot 2022-04-10 at 23 27 32


Using JUnit

  - uses: michaelhenry/create-report@v2
    name: create report from junit
    with:
      title: "JUnit report"
      path: samples/sample.junit
      format: junit

Please see samples/sample.junit for the sample file which generated this run report.

Screen Shot 2022-04-10 at 23 26 19