Skip to content

Commit 67cdfd4

Browse files
authored
Add generate-job-summary input to control CI job summary generation (#98)
* add opt-out input * update package-lock * update common-utils version * update description * add job summary sanity checks * update field name to generate-summary * update field description * update variable name
1 parent e8cdbd0 commit 67cdfd4

5 files changed

Lines changed: 504 additions & 446 deletions

File tree

.github/workflows/bat.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ jobs:
9494
[~, f] = fileparts(pwd);
9595
assert(strcmp(f, 'subdir'));
9696
startup-options: -sd subdir
97+
- name: Run command to run tests
98+
uses: ./
99+
with:
100+
command: runtests("sample/TheTruth.m");
101+
- name: Run command to run tests (sanity check for test summary)
102+
uses: ./
103+
with:
104+
command: runtests("sample/TheTruth.m"); runtests("sample/TheTruth.m"); runtests("sample/TheTruth.m");
97105
- name: Create buildfile.m in project root for build and test summary
98106
shell: bash
99107
run: |

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ inputs:
1313
Startup options for MATLAB
1414
required: false
1515
default: ""
16+
generate-summary:
17+
description: >-
18+
Option to generate a summary for the GitHub job summary
19+
required: false
20+
default: true
1621
runs:
1722
using: node24
1823
main: dist/index.js

0 commit comments

Comments
 (0)