Skip to content

Commit

Permalink
🐝 remove svg tester github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed May 7, 2024
1 parent cce974b commit eb3bc67
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 172 deletions.
81 changes: 0 additions & 81 deletions .github/workflows/svg-compare-all-views.yml

This file was deleted.

80 changes: 0 additions & 80 deletions .github/workflows/svg-compare.yml

This file was deleted.

11 changes: 0 additions & 11 deletions devTools/svgTester/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,6 @@ export async function renderAndVerifySvg({
}
}

// no-op when not running inside GH Actions
const setGhActionsOutput = (key: string, value: string | number) => {
const outPath = process.env.GITHUB_OUTPUT
if (outPath && fs.existsSync(outPath)) {
// this is not bulletproof and expects both to not contain special characters
fs.appendFileSync(outPath, `${key}=${value}`)
}
}

export function displayVerifyResultsAndGetExitCode(
validationResults: VerifyResult[],
verbose: boolean
Expand Down Expand Up @@ -682,7 +673,6 @@ export function displayVerifyResultsAndGetExitCode(
for (const result of errorResults) {
console.log(result.graphId?.toString(), result.error) // write to stdout one grapher id per file for easy piping to other processes
}
setGhActionsOutput("num_errors", errorResults.length)
}
if (differenceResults.length) {
console.warn(
Expand All @@ -695,7 +685,6 @@ export function displayVerifyResultsAndGetExitCode(
for (const result of differenceResults) {
console.log("", result.difference.chartId) // write to stdout one grapher id per file for easy piping to other processes
}
setGhActionsOutput("num_differences", differenceResults.length)
}
returnCode = errorResults.length + differenceResults.length
}
Expand Down

0 comments on commit eb3bc67

Please sign in to comment.