Skip to content

Update matlabact.yml #44

Update matlabact.yml

Update matlabact.yml #44

Workflow file for this run

name: Run MATLAB Build on GitHub-Hosted Runner
on:
workflow_dispatch
env:
MLM_LICENSE_TOKEN: ${{ secrets.LICTOKEN }}
jobs:
check_test:
name: Run MATLAB Tests
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
products: MATLAB_Compiler
release: R2024a
- name: Run build
uses: matlab-actions/[email protected]
with:
tasks: check test
- name: Run tests and generate artifacts
uses: matlab-actions/run-tests@v1
with:
test-results-junit: test-results/results.xml
code-coverage-cobertura: code-coverage/coverage.xml
source-folder: source
- uses: actions/upload-artifact@v2
with:
name: cc
path: code-coverage/coverage.xml
- uses: actions/upload-artifact@v2
with:
name: tr
path: test-results/results.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:

Check failure on line 42 in .github/workflows/matlabact.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/matlabact.yml

Invalid workflow file

You have an error in your yaml syntax on line 42
files: |
test-results/*.xml
deploy:
name: Generate Deploy Artifacts
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
products: MATLAB_Compiler
release: R2024a
- name: Run build
uses: matlab-actions/[email protected]
with:
tasks: pcode deploy
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: app-${{ matrix.os }}
path: ./*standalone*/*timestable*