This action builds project reports to static HTML, JavaScript, and CSS.
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.
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
.
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.