Skip to content

Commit

Permalink
Testing JSON parse
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed May 21, 2024
1 parent b1e74e3 commit 7859040
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,20 @@ async function readJsonFile(filePath: string): Promise<TaskDetails[]> {
}
}

function addBuildSummaryTable(data: TaskDetails[]): void {
function addBuildSummaryTable(task: TaskDetails[]): void {
core.summary
.addHeading('MATLAB Build Results')
.addTable([
[{data: 'Task Name', header: true}, {data: 'Status', header: true}, {data: 'Description', header: true}, {data: 'Duration (HH:MM:SS)', header: true}],
if (data.length > 0) {
if (task.length > 0) {

Check failure on line 32 in src/buildSummary.ts

View workflow job for this annotation

GitHub Actions / Build and Test

Expression or comma expected.
let values: string[] = [];
data.forEach((row) => {
task.forEach((row) => {
Object.values(row).forEach((value) => {
values.push(${value})
values.push(${value});

Check failure on line 36 in src/buildSummary.ts

View workflow job for this annotation

GitHub Actions / Build and Test

',' expected.
});
});
values + ","
}
])

Check failure on line 41 in src/buildSummary.ts

View workflow job for this annotation

GitHub Actions / Build and Test

Declaration or statement expected.

Check failure on line 41 in src/buildSummary.ts

View workflow job for this annotation

GitHub Actions / Build and Test

Declaration or statement expected.
.write()

Check failure on line 42 in src/buildSummary.ts

View workflow job for this annotation

GitHub Actions / Build and Test

Declaration or statement expected.
}

0 comments on commit 7859040

Please sign in to comment.