Add tests to cover all dependent properties of HK types #88
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MATLAB Tests and Packaging | |
on: [push] | |
jobs: | |
test: | |
name: Run MATLAB Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up MATLAB | |
uses: matlab-actions/[email protected] | |
with: | |
release: R2023b | |
- name: Run tests | |
uses: matlab-actions/[email protected] | |
with: | |
tasks: check test | |
- name: Report results | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: MATLAB Test Results | |
path: 'results.xml' | |
working-directory: 'artifacts' | |
reporter: java-junit | |
- name: Report coverage | |
uses: 5monkeys/cobertura-action@master | |
with: | |
path: 'artifacts/coverage.xml' | |
minimum_coverage: 80 | |
report_name: Coverage Report | |
package: | |
name: Package MATLAB Toolbox | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
needs: test | |
env: | |
VERSION: "2.5.1" | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up MATLAB | |
uses: matlab-actions/[email protected] | |
with: | |
release: R2023b | |
- name: Package toolbox | |
uses: matlab-actions/[email protected] | |
with: | |
tasks: package("${{ env.VERSION }}") | |
- name: Upload toolbox | |
uses: actions/[email protected] | |
with: | |
name: 'MAG Data Visualization.mltbx' | |
path: artifacts | |
if-no-files-found: error | |
- name: Create release | |
uses: ncipollo/[email protected] | |
with: | |
tag: v${{ env.VERSION }} | |
artifacts: 'artifacts/MAG Data Visualization.mltbx' | |
bodyFile: 'resources/ReleaseNotes.md' |