addressed review feedback #263
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: Build and Test | |
on: [push] | |
env: | |
MATHWORKS_ACCOUNT: ${{ secrets.MATHWORKS_ACCOUNT }} | |
MATHWORKS_TOKEN: ${{ secrets.MATHWORKS_TOKEN }} | |
jobs: | |
bat: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Perform npm tasks | |
run: npm run ci | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: built-action | |
path: | | |
**/* | |
!node_modules/ | |
integ: | |
needs: bat | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- os: ubuntu-latest | |
release: latest | |
products: Simulink Simulink_Test | |
check-matlab: matlabVer = ver('matlab'); assert(~isempty(matlabVer)); | |
check-simulink: simulinkVer = ver('simulink'); assert(~isempty(simulinkVer)); | |
- os: ubuntu-20.04 | |
release: R2021bU2 | |
products: | | |
MATLAB | |
Simulink | |
check-matlab: matlabVer = ver('matlab'); assert(strcmp(matlabVer.Release,'(R2021b)')); | |
check-simulink: simulinkVer = ver('simulink'); assert(strcmp(simulinkVer.Release,'(R2021b)')); | |
- os: windows-latest | |
release: latest | |
products: Simulink | |
check-matlab: matlabVer = ver('matlab'); assert(~isempty(matlabVer)); | |
check-simulink: simulinkVer = ver('simulink'); assert(~isempty(simulinkVer)); | |
- os: macos-latest | |
release: latest | |
products: Simulink | |
check-matlab: matlabVer = ver('matlab'); assert(~isempty(matlabVer)); | |
check-simulink: simulinkVer = ver('simulink'); assert(~isempty(simulinkVer)); | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: built-action | |
- name: Install selected products | |
id: setup_matlab | |
uses: ./ | |
with: | |
release: ${{ matrix.release }} | |
products: ${{ matrix.products }} | |
- name: Check matlabroot output is set | |
run: 'if [[ "${{ steps.setup_matlab.outputs.matlabroot }}" != *"MATLAB"* ]]; then exit 1; fi' | |
shell: bash | |
- name: Check MATLAB version | |
run: matlab-batch "${{ matrix.check-matlab }}" | |
- name: Check Simulink version | |
run: matlab-batch "${{ matrix.check-simulink }}" | |
- name: Check NoOp on 2nd install | |
uses: ./ | |
with: | |
release: ${{ matrix.release }} | |
products: ${{ matrix.products }} | |