Skip to content

Commit 1e77729

Browse files
authored
Update ci.yml for Actions
1 parent 69bf0b9 commit 1e77729

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# For details about the syntax of this file, see
1010
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
1111

12-
# Copyright 2021-2023 The MathWorks, Inc.
12+
# Copyright 2021-2025 The MathWorks, Inc.
1313

1414
name: CI using MATLAB
1515

@@ -41,15 +41,15 @@ jobs:
4141
steps:
4242

4343
- name: Check out repository
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545

4646
- name: Setup MATLAB
47-
uses: matlab-actions/setup-matlab@v1
47+
uses: matlab-actions/setup-matlab@v2
4848
with:
4949
release: R2024b
5050

5151
- name: Run tests
52-
uses: matlab-actions/run-command@v1
52+
uses: matlab-actions/run-command@v2
5353
with:
5454
command: openProject(pwd); BEVProjectRuntestsCheckProject;
5555

@@ -65,11 +65,20 @@ jobs:
6565
uses: actions/checkout@v3
6666

6767
- name: Setup MATLAB
68-
uses: matlab-actions/setup-matlab@v1
68+
uses: matlab-actions/setup-matlab@v2
6969
with:
7070
release: R2024b
71-
71+
cache: true
72+
products: |
73+
Simscape
74+
Simulink
75+
Simscape_Fluids
76+
Stateflow
77+
Simscape_Driveline
78+
Simscape_Electrical
79+
Powertrain_Blockset
80+
Simscape_Battery
7281
- name: Run tests
73-
uses: matlab-actions/run-command@v1
82+
uses: matlab-actions/run-command@v2
7483
with:
7584
command: openProject(pwd); BEVProjectTests;

0 commit comments

Comments
 (0)