Skip to content

Commit c807bc6

Browse files
committed
update common-utils version and yml file
1 parent 8e66b3c commit c807bc6

4 files changed

Lines changed: 25 additions & 42 deletions

File tree

.github/workflows/bat.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,19 @@ jobs:
4040
Simulink
4141
Simulink_Test
4242
Simulink_Coverage
43-
- name: Clear job summary
44-
run: echo "" > "$GITHUB_STEP_SUMMARY"
45-
shell: bash
4643
- name: Run MATLAB Tests with job summary disabled
4744
continue-on-error: true
4845
uses: ./
4946
with:
47+
source-folder: sample
5048
generate-job-summary: false
51-
- name: Verify no job summary is generated when disabled
52-
run: |
53-
set -e
54-
if grep -q "MATLAB Test Results" "$GITHUB_STEP_SUMMARY"; then
55-
echo "Job summary should not have been generated" && exit 1
56-
fi
57-
shell: bash
58-
- name: Clear job summary
59-
run: echo "" > "$GITHUB_STEP_SUMMARY"
60-
shell: bash
6149
- name: Run MATLAB Tests
6250
continue-on-error: true
6351
uses: ./
6452
with:
6553
source-folder: sample
6654
startup-options: -logfile output.log
67-
code-coverage-metric-level: mcdc # new option to configure metric level
68-
- name: Verify job summary is generated by default
69-
run: |
70-
set -e
71-
grep -q "MATLAB Test Results" "$GITHUB_STEP_SUMMARY"
72-
shell: bash
55+
code-coverage-metric-level: mcdc
7356
- name: Verify option application
7457
run: |
7558
set -e

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ inputs:
8686
default: ""
8787
generate-job-summary:
8888
description: >-
89-
Whether to generate a job summary with test results and code coverage information
89+
Whether to generate a MATLAB-related job summary for the workflow run
9090
required: false
9191
default: true
9292
code-coverage-metric-level:

package-lock.json

Lines changed: 21 additions & 21 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dependencies": {
2323
"@actions/core": "^3.0.0",
2424
"@actions/exec": "^3.0.0",
25-
"common-utils": "github:matlab-actions/common-utils#kapilg/opt-out"
25+
"common-utils": "github:matlab-actions/common-utils#v2.3.0"
2626
},
2727
"devDependencies": {
2828
"@types/jest": "^30.0.0",

0 commit comments

Comments
 (0)