File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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!" ) ;
You can’t perform that action at this time.
0 commit comments