File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments