Compare commits

...

2 Commits
v4.3.0 ... v4

Author SHA1 Message Date
David Finol
0ff419b913 Fix GitHub Issue #214 (#274) 2024-06-15 11:17:55 -07:00
David Finol
e0e796f3d9 Fix README.md typo (#273) 2024-06-12 06:16:26 -05:00
4 changed files with 12 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ GameCI is free for everyone forever.
You can support us at [OpenCollective](https://opencollective.com/game-ci).
## Licence
## License
This repository is [MIT](./LICENSE) licensed.

8
dist/index.js generated vendored
View File

@@ -1063,10 +1063,12 @@ const ResultsCheck = {
return __awaiter(this, void 0, void 0, function* () {
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 = 65534;
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}`);
const createCheckRequest = Object.assign(Object.assign({}, github.context.repo), { name: checkName, head_sha: headSha, status: 'completed', conclusion: 'neutral', output });

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -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}`);