test #150
Workflow file for this run
This file contains hidden or 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 & Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build-windows: | |
| name: Build VSIX (windows-latest) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| - name: Clean install dependencies | |
| run: npm ci | |
| - name: Package vsix | |
| run: npm run package | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Setup tests | |
| run: npm run test-setup | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: build-windows-latest | |
| path: | | |
| *.vsix | |
| out | |
| build-ubuntu: | |
| name: Build VSIX (ubuntu-latest) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| - name: Clean install dependencies | |
| run: npm ci | |
| - name: Package vsix | |
| run: npm run package | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Setup tests | |
| run: npm run test-setup | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: build-ubuntu-latest | |
| path: | | |
| *.vsix | |
| out | |
| build-macos: | |
| name: Build VSIX (macos-13) | |
| runs-on: macos-13 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| - name: Clean install dependencies | |
| run: npm ci | |
| - name: Package vsix | |
| run: npm run package | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Setup tests | |
| run: npm run test-setup | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: build-macos-13 | |
| path: | | |
| *.vsix | |
| out | |
| test-smoke-windows: | |
| name: Test ${{ matrix.version }}-windows-latest | |
| needs: build-windows | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: [R2021b, R2022a, R2022b, latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-windows-latest | |
| - name: Set up MATLAB | |
| uses: matlab-actions/setup-matlab@v2 | |
| with: | |
| release: ${{ matrix.version }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| - name: Clean install dependencies | |
| run: npm ci | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Run UI tests | |
| run: npm run test-ui | |
| env: | |
| MLM_WEB_LICENSE: true | |
| MLM_WEB_ID: ${{ secrets.MLM_WEB_ID }} | |
| MLM_WEB_USER_CRED: ${{ secrets.MLM_WEB_USER_C }} |