Skip to content

Commit 57ef067

Browse files
committed
bat.yml
1 parent dc0a7f5 commit 57ef067

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/bat.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,23 @@ jobs:
118118
uses: ./
119119
with:
120120
source-folder: sample
121-
code-coverage-metric-level: mcdc
121+
code-coverage-metric-level: mcdc
122+
run-tests-with-matlabtest:
123+
name: Run tests with MATLAB Test
124+
needs: bat
125+
runs-on: ubuntu-latest
126+
steps:
127+
- uses: actions/download-artifact@v8
128+
with:
129+
name: built-action
130+
- name: Perform 'setup-matlab' with MATLAB Test
131+
uses: matlab-actions/setup-matlab@v3
132+
with:
133+
products: |
134+
MATLAB_Test
135+
- name: Run MATLAB Tests
136+
uses: ./
137+
with:
138+
source-folder: sample
139+
code-coverage-metric-level: mcdc
140+
code-coverage-html: test-results/coverageHTML

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ async function run() {
5252
MW_BATCH_LICENSING_ONLINE: "true", // Remove when online batch licensing is the default
5353
INPUT_CODE_COVERAGE_METRIC_LEVEL: codeCoverageMetricLevel,
5454
INPUT_SOURCE_FOLDER: options.SourceFolder!, // Add source folder to environment
55-
INPUT_CODE_COVERAGE_HTML: options.HTMLCodeCoverage!, // Add source folder to environment
56-
INPUT_CODE_COVERAGE_COBERTURA: options.CoberturaCodeCoverage!, // Add source folder to environment
55+
INPUT_CODE_COVERAGE_HTML: options.HTMLCodeCoverage!,
56+
INPUT_CODE_COVERAGE_COBERTURA: options.CoberturaCodeCoverage!,
5757
},
5858
};
5959
core.info("Successfully generated test script!");

0 commit comments

Comments
 (0)