Skip to content

aloviedo/project-report-renderer

 
 

Repository files navigation

Project Report Renderer

This action builds project reports to static HTML, JavaScript, and CSS.

Use

steps:
  # After generating reports
  - name: Render reports
    uses: bbq-beets/project-report-renderer@v1

See action.yml for a description of the inputs that can be provided to this action.

Development

After cloning the repository, copy a report directory to ./.reports, and then run ./test.sh. This script builds the container and runs it in a similar fashion to the action itself.

If you want to run the Next.js server without Docker (after copying a report directory), you can install this project's npm dependencies and run it:

> npm install
> npm run dev

The site will be served from a prefix, so navigate to http://localhost:3000/project-report-renderer.

How it Works

When this action runs in a repository where project reports have been generated, it uses that data in order to build the static site defined in this action's /pages directory using Next.js.

See entrypoint.sh for a detailed overview, but it basically copies report data into a temporary build directory, then copies the final static site output back to the workflow working directory and pushes it to the repository.

Licenses

  • Icons in components/icons are from heroicons, licensed under MIT.

About

Render project reports to static sites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.9%
  • JavaScript 5.3%
  • CSS 4.6%
  • Shell 1.7%
  • Dockerfile 0.5%