Skip to content

Commit 590095c

Browse files
feat: internal report is written to file after processing (#159)
1 parent e67da05 commit 590095c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ctrf/report-preparation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export async function prepareReport(
3838
report = stripAnsiFromErrors(report)
3939
report = enrichCurrentReportWithRunDetails(report, githubContext)
4040
if (inputs.uploadArtifact) await uploadArtifact(inputs.artifactName, report)
41-
if (inputs.writeCtrfToFile) writeReportToFile(inputs.writeCtrfToFile, report)
4241

4342
if (shouldGroupTests(inputs)) {
4443
report = groupTestsBySuiteOrFilePath(
@@ -60,6 +59,8 @@ export async function prepareReport(
6059
)
6160
}
6261

62+
if (inputs.writeCtrfToFile) writeReportToFile(inputs.writeCtrfToFile, report)
63+
6364
return report
6465
}
6566

0 commit comments

Comments
 (0)