test #59
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
# Run Extension tests | |
name: test | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push events for the "main" branch | |
push: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test-smoke: | |
name: ${{ matrix.ml-version }}-${{ matrix.vsc-version }}-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ml-version: [R2021b, R2023a] | |
vsc-version: [min, max] | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up MATLAB | |
uses: matlab-actions/setup-matlab@v2 | |
with: | |
release: ${{ matrix.ml-version }} | |
env: | |
MATHWORKS_SKIP_ACTIVATION: true | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.15.x | |
cache: npm | |
- name: npm clean install | |
run: npm ci | |
- name: package vsix | |
run: npm run package | |
- name: npm clean install | |
run: npm ci | |
- name: Start Xvfb | |
run: /usr/bin/Xvfb :17 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb" | |
shell: bash | |
if: ${{ success() && matrix.os == 'ubuntu-latest' }} | |
- name: Run tests | |
run: npm run test | |
env: | |
MLM_WEB_LICENSE: true | |
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}} | |
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}} | |
VSCODE_VERSION: ${{ matrix.vsc-version }} | |
DISPLAY: ":17.0" |