Skip to content

Updated project startup to take new image (#17). Replaced image_0 tha… #7

Updated project startup to take new image (#17). Replaced image_0 tha…

Updated project startup to take new image (#17). Replaced image_0 tha… #7

Workflow file for this run

name: Module Test
# Controls when the action will run.
on:
push:
branches: [ release ]
pull_request:
branches: [ release ]
jobs:
RunTests:
strategy:
fail-fast: false
matrix:
MATLABVersion: [R2024a]
runs-on: ubuntu-latest
steps:
# Checks-out your repository
- uses: actions/checkout@v3
# Sets up MATLAB
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: ${{ matrix.MATLABVersion }}
# Run all the tests
- name: Run SmokeTests
uses: matlab-actions/run-command@v1
with:
command: openProject(pwd); RunAllTests;
# Upload the test results as artifact
- name: Upload TestResults
if: always()
uses: actions/[email protected]
with:
name: TestResults
path: ./SoftwareTests/TestResults_${{ matrix.MATLABVersion }}.txt
CreateBadge:
if: ${{ always() }}
needs: [RunTests]
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
# Checks-out your repository
- uses: actions/checkout@v3
# Sets up R2023b
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: R2023b
# Download the test results from artifact
- name: Download TestResults
uses: actions/[email protected]
with:
name: TestResults
path: ./SoftwareTests/
# Create the test results badge
- name: Run CreateBadge
uses: matlab-actions/run-command@v1
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