-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Publish static reports via github pages (#68)
* Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * attempt to use github cache * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * Update build-and-publish-reports.yml * fix: md->html conversion requires extra newline * fix: render body as multiline json in reports * chore: remove extraneous comments * feat: add date and revision to report output * chore: use more explicit github action job names * fix: do not squash gh-pages history * feat: Link to headers from summary, cleanup revision markdown * fix: attempt to catch git-rev error * fix: Remove hardcoded delay for pinata * feat: gh-pages has informative commit messages * chore: Reports with no changes from previous will create commit * feat: add report history link * Also handles failures when there is no git history now * fix: Remove previous revision from header * chore: rename and hide joi schema failures when empty temporary solution until #78 is done * fix: UX improvement for pass/fail/error icons fixes #76 * fix: add json identifier to code in markdown fixes #77 * fix: Error output uses icon and header It will not show if there are no errors * feat: fix json highlighting in reports fixes #77 * style: change body order raw→json→parsed This makes things easier to reason about: In this order, each step has more strictness. Co-authored-by: Marcin Rataj <[email protected]>
- Loading branch information
Showing
21 changed files
with
386 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Icons } from '../utils/constants.js' | ||
|
||
interface ComplianceCheckHeaderProps { | ||
title: string | ||
successful: boolean | ||
} | ||
const complianceCheckHeader = ({ title, successful }: ComplianceCheckHeaderProps) => `${title} - ${successful ? `${Icons.SUCCESS} SUCCESS` : `${Icons.FAILURE} FAILED`}` | ||
|
||
export { complianceCheckHeader } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { inspect } from 'util' | ||
|
||
import { Icons } from '../utils/constants.js' | ||
|
||
const errorToMarkdown = (error: Error) => { | ||
let errorOutput = '' | ||
if (error.stack != null) { | ||
errorOutput = ` | ||
${Icons.ERROR} ${error.stack}` | ||
} else if (error.name != null && error.message != null) { | ||
errorOutput = `${Icons.ERROR} ${error.name} - ${error.message}` | ||
} else { | ||
errorOutput = `${Icons.ERROR} ${inspect(error)}` | ||
} | ||
return errorOutput | ||
} | ||
const getErrorsMarkdown = (errors: Error[]) => errors.map(errorToMarkdown).join('\n') | ||
|
||
export { getErrorsMarkdown } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.