Skip to content

Commit 6de7664

Browse files
committed
update bat.yml
1 parent 19617c3 commit 6de7664

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/bat.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,17 @@ jobs:
5353
grep "Done TheTruth" output.log
5454
grep "1 Passed" output.log
5555
shell: bash
56+
- name: Generate Model
57+
uses: matlab-actions/run-command@v2
58+
with:
59+
command: cd('sample'),createSampleModel('temp_model'),sltest.testmanager.createTestsFromModel('sltestfile', 'temp_model');
5660
- name: Set up diary for logging
5761
run: echo 'diary console.log' >> startup.m
58-
- name: Run run-test command with artifact generation
62+
- name: Run run-test command
5963
continue-on-error: true
6064
uses: ./
6165
with:
66+
test-results-simulink-test: test-results/simulinktest.mldatx
6267
model-coverage-cobertura: test-results/modelcoverage.xml
6368
test-results-pdf: test-results/pdf-results.pdf
6469
test-results-junit: test-results/results.xml
@@ -73,6 +78,7 @@ jobs:
7378
logging-level: Detailed
7479
- name: Verify artifacts generation
7580
run: |
81+
(test -f test-results/simulinktest.mldatx) || (echo "File simulinktest.mldatx does not exist" && exit 1)
7682
(test -f test-results/modelcoverage.xml) || (echo "File modelcoverage.xml does not exist" && exit 1)
7783
(test -f test-results/pdf-results.pdf) || (echo "File pdf-results.pdf does not exist" && exit 1)
7884
(test -f test-results/results.xml) || (echo "File results.xml does not exist" && exit 1)
@@ -87,18 +93,4 @@ jobs:
8793
grep -q "runInParallel" console.log
8894
grep -q "'OutputDetail', 3" console.log
8995
grep -q "'LoggingLevel', 3" console.log
90-
shell: bash
91-
- name: Generate Model
92-
uses: matlab-actions/run-command@v2
93-
with:
94-
command: cd('sample'),createSampleModel('temp_model'),sltest.testmanager.createTestsFromModel('sltestfile', 'temp_model');
95-
# Separate test run for SL test results till genscript supports informal testrunner with this parameter
96-
- name: Run run-test command with Simulink Test artifact generation
97-
continue-on-error: true
98-
uses: ./
99-
with:
100-
test-results-simulink-test: test-results/simulinktest.mldatx
101-
- name: Verify artifacts generation
102-
run: |
103-
(test -f test-results/simulinktest.mldatx) || (echo "File simulinktest.mldatx does not exist" && exit 1)
104-
shell: bash
96+
shell: bash

0 commit comments

Comments
 (0)