Skip to content

Commit fd05f9a

Browse files
committed
use matlab module from common-utils
1 parent f299b18 commit fd05f9a

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +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",
25-
"run-matlab-command-action": "github:matlab-actions/run-command#v2.3.0"
24+
"common-utils": "https://github.com/matlab-actions/common-utils#kapilg/refactor"
2625
},
2726
"devDependencies": {
2827
"@types/jest": "^30.0.0",

src/index.ts

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

33
import * as core from "@actions/core";
44
import * as exec from "@actions/exec";
5-
import { matlab } from "run-matlab-command-action";
65
import * as scriptgen from "./scriptgen";
76
// TODO: update common-utils version when new version is released
8-
import { testResultsSummary } from "common-utils";
7+
import { testResultsSummary, matlab } from "common-utils";
98
import * as path from "path";
109

1110
/**
@@ -45,7 +44,7 @@ async function run() {
4544
core.info("Successfully generated test script!");
4645

4746
await matlab.runCommand(helperScript, platform, architecture, exec.exec, startupOptions).finally(() => {
48-
const testResultsData = testResultsSummary.getTestResults(runnerTemp, runId, workspaceDir);
47+
const testResultsData = testResultsSummary.getTestResults(runnerTemp, runId, actionName, workspaceDir);
4948
testResultsSummary.writeSummary(testResultsData, actionName);
5049
});
5150
}

0 commit comments

Comments
 (0)