-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (55 loc) · 1.61 KB
/
Copy pathactions.yml
File metadata and controls
58 lines (55 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: MATLAB
on:
push:
pull_request:
workflow_dispatch:
repository_dispatch:
types: [batch-trigger]
# TODO: refactor into a reusable action to avoid DRY violation here
jobs:
# Test all licensing endpoints against oldest and newest MATLAB release
test-licws:
strategy:
fail-fast: false
matrix:
stage: ['prod', 'stage', 'dev']
release: ['latest', 'R2020a']
image: ['ubuntu-22.04']
runs-on: ${{ matrix.image }}
env:
MATHWORKS_LICENSING_ENDPOINT: ${{ matrix.stage }}
steps:
- uses: actions/checkout@v3
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: ${{ matrix.release }}
- name: Display version
uses: matlab-actions/run-command@v1
with:
command: version
- name: Run tests
uses: matlab-actions/run-tests@v1
# Test all MATLAB releases against all supported images
test-releases:
strategy:
fail-fast: false
matrix:
stage: ['prod']
release: ['latest', 'R2023b', 'R2023a', 'R2022b', 'R2022a', 'R2021b', 'R2021a', 'R2020b', 'R2020a']
image: ['ubuntu-20.04', 'ubuntu-22.04']
runs-on: ${{ matrix.image }}
env:
MATHWORKS_LICENSING_ENDPOINT: ${{ matrix.stage }}
steps:
- uses: actions/checkout@v3
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: ${{ matrix.release }}
- name: Display version
uses: matlab-actions/run-command@v1
with:
command: version
- name: Run tests
uses: matlab-actions/run-tests@v1