Skip to content

Commit

Permalink
Fix GitHub Issue #214
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol committed Jun 15, 2024
1 parent e0e796f commit c87bc41
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/model/results-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ const ResultsCheck = {
const pullRequest = github.context.payload.pull_request;
const headSha = (pullRequest && pullRequest.head.sha) || github.context.sha;

// Check max length for https://github.com/game-ci/unity-test-runner/issues/214
const maxLength = 65_534;
if (output.length > maxLength) {
core.warning(`Output too long (${output.length}) truncating to ${maxLength}`);
output = output.slice(0, maxLength);
if (output.text.length > maxLength) {
core.warning(`Test details of ${output.text.length} surpass limit of ${maxLength}`);
output.text =
'Test details omitted from GitHub UI due to length. See console logs for details.';
}

core.info(`Posting results for ${headSha}`);
Expand Down

0 comments on commit c87bc41

Please sign in to comment.