Skip to content

Commit d167b48

Browse files
committed
update verification
1 parent 3729302 commit d167b48

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/bat.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,13 @@ jobs:
107107
plan.DefaultTasks = "preMadeTest";
108108
end
109109
_EOF
110-
- name: Run command with buildtool pre-made test task
110+
- name: Run command with buildtool pre-made test task and verify summary generation
111111
uses: ./
112112
with:
113-
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
113+
command: >
114+
buildtool preMadeTest;
115+
assert(contains(getenv('GITHUB_STEP_SUMMARY'), 'MATLAB Build Results'));
116+
assert(contains(getenv('GITHUB_STEP_SUMMARY'), 'MATLAB Test Results'));
120117
- name: Verify environment variables make it to MATLAB
121118
uses: ./
122119
with:

0 commit comments

Comments
 (0)