Skip to content

Commit b35c765

Browse files
committed
add tests log grouping
1 parent 6de7664 commit b35c765

5 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/bat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ jobs:
9393
grep -q "runInParallel" console.log
9494
grep -q "'OutputDetail', 3" console.log
9595
grep -q "'LoggingLevel', 3" console.log
96-
shell: bash
96+
shell: bash

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"dependencies": {
2222
"@actions/core": "^1.11.1",
2323
"@actions/exec": "^1.1.1",
24-
"common-utils": "https://github.com/matlab-actions/common-utils#kapilg/refactor"
24+
"common-utils": "github:matlab-actions/common-utils#kapilg/refactor"
2525
},
2626
"devDependencies": {
2727
"@types/jest": "^30.0.0",

scripts/setupdeps.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
source ./node_modules/common-utils/scripts/setupdeps.sh
44

5+
# Copy action specific plugins to dist
6+
cp -R ./plugins $(pwd)/dist/
7+
58
SCRIPTGEN_URL='https://ssd.mathworks.com/supportfiles/ci/matlab-script-generator/v0/matlab-script-generator.zip'
69

710
wget -O scriptgen.zip $SCRIPTGEN_URL

src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as core from "@actions/core";
44
import * as exec from "@actions/exec";
55
import * as scriptgen from "./scriptgen";
66
// TODO: update common-utils version when new version is released
7-
import { testResultsSummary, matlab } from "common-utils";
7+
import { matlab, testResultsSummary } from "common-utils";
88
import * as path from "path";
99

1010
/**
@@ -14,9 +14,6 @@ async function run() {
1414
const platform = process.platform;
1515
const architecture = process.arch;
1616
const workspaceDir = process.cwd();
17-
const runnerTemp = process.env.RUNNER_TEMP || '';
18-
const runId = process.env.GITHUB_RUN_ID || '';
19-
const actionName = process.env.GITHUB_ACTION || '';
2017

2118
const options: scriptgen.RunTestsOptions = {
2219
JUnitTestResults: core.getInput("test-results-junit"),
@@ -44,6 +41,10 @@ async function run() {
4441
core.info("Successfully generated test script!");
4542

4643
await matlab.runCommand(helperScript, platform, architecture, exec.exec, startupOptions).finally(() => {
44+
const runnerTemp = process.env.RUNNER_TEMP || '';
45+
const runId = process.env.GITHUB_RUN_ID || '';
46+
const actionName = process.env.GITHUB_ACTION || '';
47+
4748
const testResultsData = testResultsSummary.getTestResults(runnerTemp, runId, workspaceDir);
4849
if(testResultsData) {
4950
testResultsSummary.writeSummary(testResultsData, actionName);

0 commit comments

Comments
 (0)