Skip to content

Issue #69 - code fixed #40

Issue #69 - code fixed

Issue #69 - code fixed #40

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/run-tests@v1.3.2
with:
use-parallel: false # optional
test-results-junit: testing/results.xml
code-coverage-cobertura: testing/coverage.xml
- name: Make test results report
uses: dorny/test-reporter@v1.6.0
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