|
1 | 1 | import { getBooleanInput, getInput, setFailed } from "@actions/core"; |
2 | 2 | import { exec } from "@actions/exec"; |
3 | 3 | import { getOctokit, context } from "@actions/github"; |
4 | | -import { eslint, litAnalyzer } from "./scripts/analyze"; |
5 | | -import { playwright, testing, typeDoc } from "./scripts/testing"; |
| 4 | +import { eslint, litAnalyzer, typeDoc } from "./scripts/analyze"; |
| 5 | +import { playwright, testing } from "./scripts/testing"; |
6 | 6 | import { coverage, getCoverage } from "./scripts/coverage"; |
7 | 7 | import { comment } from "./scripts/comment"; |
8 | 8 | import { cwd, chdir } from "process"; |
@@ -71,11 +71,17 @@ export const buildComment = async ( |
71 | 71 | ): Promise<StepResponse> => { |
72 | 72 | if (response.error == true) { |
73 | 73 | if (problemsCount !== undefined && problemsCount > 0) { |
74 | | - response.output = `${failedEmoji} - ${label}: ${problemsCount} problem${ |
| 74 | + // response.output = `${failedEmoji} - ${label}: ${problemsCount} problem${ |
| 75 | + // problemsCount > 1 ? "s" : "" |
| 76 | + // } found\n<details><summary>See Details</summary>${outputStr}</details>`; |
| 77 | + |
| 78 | + response.output = `${failedEmoji} - <details><summary>${label}: ${problemsCount} problem${ |
75 | 79 | problemsCount > 1 ? "s" : "" |
76 | | - } found\n<details><summary>See Details</summary>${outputStr}</details>`; |
| 80 | + }</summary>${outputStr}</details>\n`; |
77 | 81 | } else { |
78 | | - response.output = `${failedEmoji} - ${label}\n<details><summary>See Details</summary>${outputStr}</details>`; |
| 82 | + // response.output = `${failedEmoji} - ${label}\n<details><summary>See Details</summary>${outputStr}</details>`; |
| 83 | + |
| 84 | + response.output = `${failedEmoji} - <details><summary>${label}</summary>${outputStr}</details>\n`; |
79 | 85 | } |
80 | 86 | } else { |
81 | 87 | response.output = `${passedEmoji} - ${label}\n`; |
@@ -234,6 +240,13 @@ export async function run(): Promise<void> { |
234 | 240 | }) |
235 | 241 | : undefined; |
236 | 242 |
|
| 243 | + const typeDocStr: StepResponse | undefined = doStaticAnalysis |
| 244 | + ? await typeDoc({ |
| 245 | + label: "TypeDoc", |
| 246 | + command: "npx typedoc --logLevel Warn", |
| 247 | + }) |
| 248 | + : undefined; |
| 249 | + |
237 | 250 | let webComponentsSrcRoot = wcSrcDirectory.split("/").shift(); |
238 | 251 | if (webComponentsSrcRoot?.isEmpty()) { |
239 | 252 | webComponentsSrcRoot = wcSrcDirectory.split("/")[1]; |
@@ -287,13 +300,6 @@ export async function run(): Promise<void> { |
287 | 300 | ) |
288 | 301 | : undefined; |
289 | 302 |
|
290 | | - const typeDocStr: StepResponse | undefined = doTests |
291 | | - ? await typeDoc({ |
292 | | - label: "TypeDoc", |
293 | | - command: "npx typedoc --logLevel Warn", |
294 | | - }) |
295 | | - : undefined; |
296 | | - |
297 | 303 | const [checkModifiedFilesStr, modified]: [StepResponse, boolean] = |
298 | 304 | await checkModifiedFiles({ |
299 | 305 | label: "Check for modified files", |
|
0 commit comments