Skip to content

Add expected error for 24a BuildRefrigerator #33

Add expected error for 24a BuildRefrigerator

Add expected error for 24a BuildRefrigerator #33

Workflow file for this run

name: MATLAB Build
# Controls when the action will run.
on:
push:
branches: [ release ]
pull_request:
branches: [ release ]
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
MATLABVersion: [R2024a,R2024b]
runs-on: ubuntu-latest
steps:
# Checks-out your repository
- uses: actions/checkout@v4
# Sets up a display server
- name: Start display server
if: ${{ always() }}
run: |
sudo apt-get install xvfb
Xvfb :99 &
echo "DISPLAY=:99" >> $GITHUB_ENV
# Sets up MATLAB
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.MATLABVersion }}
products: >
Simulink
Simscape_Fluids
Stateflow
Simulink_Real-Time
Symbolic_Math_Toolbox
Image_Processing_Toolbox
# Run all the tests
- name: Run SmokeTests
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); RunAllTests;
# Upload the test results as artifact
- name: Upload TestResults
uses: actions/upload-artifact@v4
with:
name: TestResults_${{ matrix.MATLABVersion }}
path: ./SoftwareTests/TestResults_${{ matrix.MATLABVersion }}.txt
overwrite: true
badge:
if: ${{ always() }}
needs: [test]
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
# Checks-out your repository
- uses: actions/checkout@v4
# Sets up R2024b
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2024b
# Download the test results from artifact
- name: Download All TestResults
uses: actions/download-artifact@v4
with:
path: SoftwareTests
pattern: TestResults_*
merge-multiple: true
# Create the test results badge
- name: Run CreateBadge
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); CreateBadge;
# Commit the JSON for the MATLAB releases badge
- name: Commit changed files
continue-on-error: true
run: |
git config user.name "${{ github.workflow }} by ${{ github.actor }}"
git config user.email "<>"
git pull
git add Images/TestedWith.json
git commit Images/TestedWith.json -m "Update CI badges ${{ github.ref_name }}"
git fetch
git push