Skip to content

Commit 2b8efeb

Browse files
committed
update field name to generate-summary
1 parent c807bc6 commit 2b8efeb

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/bat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: ./
4646
with:
4747
source-folder: sample
48-
generate-job-summary: false
48+
generate-summary: false
4949
- name: Run MATLAB Tests
5050
continue-on-error: true
5151
uses: ./

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ inputs:
8484
Startup options for MATLAB
8585
required: false
8686
default: ""
87-
generate-job-summary:
87+
generate-summary:
8888
description: >-
8989
Whether to generate a MATLAB-related job summary for the workflow run
9090
required: false

package-lock.json

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

plugins/+matlab/+unittest/+internal/+services/+plugins/CodeCoverageSummaryPluginService.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
hasCoverageRequest = hasCoverageHTML || hasCoverageCobertura;
1313

1414
% Check if MATLAB Test license is available and MATLAB Test is installed
15-
if license('test', 'matlab_test') && isProductInstalled && ~hasCoverageRequest
15+
if strcmpi(getenv("MW_GENERATE_SUMMARY"), "true") && ~hasCoverageRequest && license('test', 'matlab_test') && isProductInstalled
1616
% Get metric level from environment variable
1717
metricLevel = getenv('INPUT_CODE_COVERAGE_METRIC_LEVEL');
1818

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function run() {
3131
LoggingLevel: core.getInput("logging-level"),
3232
};
3333

34-
const generateJobSummary = core.getBooleanInput("generate-job-summary");
34+
const generateSummary = core.getBooleanInput("generate-summary");
3535
var codeCoverageMetricLevel = core.getInput("code-coverage-metric-level").toLowerCase();
3636

3737
// Validate metric level
@@ -55,7 +55,7 @@ async function run() {
5555
INPUT_SOURCE_FOLDER: options.SourceFolder!, // Add source folder to environment
5656
INPUT_CODE_COVERAGE_HTML: options.HTMLCodeCoverage!,
5757
INPUT_CODE_COVERAGE_COBERTURA: options.CoberturaCodeCoverage!,
58-
MW_GENERATE_JOB_SUMMARY: String(generateJobSummary),
58+
MW_GENERATE_SUMMARY: String(generateSummary),
5959
},
6060
};
6161
core.info("Successfully generated test script!");
@@ -69,7 +69,7 @@ async function run() {
6969
startupOptions,
7070
)
7171
.finally(() => {
72-
if (generateJobSummary) {
72+
if (generateSummary) {
7373
const runnerTemp = process.env.RUNNER_TEMP || "";
7474
const runId = process.env.GITHUB_RUN_ID || "";
7575
const actionName = process.env.GITHUB_ACTION || "";

0 commit comments

Comments
 (0)