-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (38 loc) · 1.11 KB
/
testHydroSight.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Testing
on:
push:
branches:
- master
- release/*
jobs:
my-job:
name: Run MATLAB Commands
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
lfs: 'true'
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
- name: Set testing environment
uses: matlab-actions/run-command@v1
with:
command: results = testHydroSight(false);
- name: Run tests
uses: matlab-actions/[email protected]
with:
use-parallel: false # optional
test-results-junit: testing/results.xml
code-coverage-cobertura: testing/coverage.xml
- name: Make test results report
uses: dorny/[email protected]
if: success() || failure() # run this step even if previous step failed
with:
name: Test Report
path: testing/results.xml
reporter: java-junit
- name: Make coverage report
uses: codecov/codecov-action@v1
with:
file: testing/coverage.xml