Skip to content

Commit a02bfb9

Browse files
committed
fix
1 parent 65fd7bc commit a02bfb9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/bat.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ jobs:
151151
echo "Step summary file not found"
152152
exit 1
153153
fi
154-
154+
echo "Step summary file found"
155155
cat "$GITHUB_STEP_SUMMARY"
156156
157157
# Check for content expected in the coverage summary
158158
grep -q "Coverage" "$GITHUB_STEP_SUMMARY"
159+
shell: bash

plugins/+testframework/CodeCoverageSummaryPlugin.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ function runSession(plugin, pluginData)
6363
% Determine file path for coverage results
6464
coverageArtifactFile = fullfile(getenv("RUNNER_TEMP"), "matlabCoverageResults" + getenv("GITHUB_RUN_ID") + ".json");
6565
stepSummaryFile = getenv('GITHUB_STEP_SUMMARY');
66-
66+
disp("added coverage summary");
6767
if ~isempty(stepSummaryFile)
6868
% Write coverage summary to the file
6969
fid = fopen(stepSummaryFile, 'a'); % 'a' for append mode
7070
if fid ~= -1
71+
disp("I am here");
7172
fprintf(fid, '## Code Coverage Summary\n\n');
7273
fprintf(fid, '| Metric | Coverage |\n');
7374
fprintf(fid, '|--------|----------|\n');

0 commit comments

Comments
 (0)