Skip to content

Commit 3729302

Browse files
committed
update summary APIs and add workflow verification
1 parent 83a813b commit 3729302

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/bat.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ jobs:
111111
uses: ./
112112
with:
113113
command: buildtool preMadeTest
114+
- name: Verify build and test summary generation
115+
run: |
116+
set -e
117+
grep "MATLAB Build Results" "$GITHUB_STEP_SUMMARY"
118+
grep "MATLAB Test Results" "$GITHUB_STEP_SUMMARY"
119+
shell: bash
114120
- name: Verify environment variables make it to MATLAB
115121
uses: ./
116122
with:

package-lock.json

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

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ async function run() {
3131
const runId = process.env.GITHUB_RUN_ID || '';
3232
const actionName = process.env.GITHUB_ACTION || '';
3333

34-
buildSummary.processAndDisplayBuildSummary(runnerTemp, runId, actionName);
34+
buildSummary.processAndAddBuildSummary(runnerTemp, runId, actionName);
3535

36-
testResultsSummary.processAndDisplayTestSummary(runnerTemp, runId, actionName, workspaceDir);
36+
testResultsSummary.processAndAddTestSummary(runnerTemp, runId, actionName, workspaceDir);
3737

3838
core.summary.write();
3939
});

0 commit comments

Comments
 (0)