Skip to content

Commit 8fa7ede

Browse files
committed
Update GitHub Actions config files.
1 parent 8f5cc70 commit 8fa7ede

File tree

6 files changed

+28
-45
lines changed

6 files changed

+28
-45
lines changed

.github/workflows/check-MATLAB-project.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/runtests.yml renamed to .github/workflows/ci.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
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-2022 The MathWorks, Inc.
12+
# Copyright 2021-2023 The MathWorks, Inc.
1313

14-
name: Run tests in MATLAB R2022b
14+
name: CI using MATLAB
1515

1616
on:
1717
push:
18-
branches: [ main, R2022b ]
18+
branches: [ R2022b ]
1919
paths-ignore:
2020
- 'docs/**'
2121
- '**.md'
@@ -25,7 +25,7 @@ on:
2525
- '**.xml'
2626

2727
pull_request:
28-
branches: [ main, R2022b ]
28+
branches: [ R2022b ]
2929
paths-ignore:
3030
- 'docs/**'
3131
- '**.md'
@@ -35,7 +35,29 @@ on:
3535
- '**.xml'
3636

3737
jobs:
38-
matlab-22b:
38+
39+
job-check-project:
40+
runs-on: ubuntu-latest
41+
steps:
42+
43+
- name: Check out repository
44+
uses: actions/checkout@v3
45+
46+
- name: Setup MATLAB
47+
uses: matlab-actions/setup-matlab@v1
48+
with:
49+
release: R2022b
50+
51+
- name: Run tests
52+
uses: matlab-actions/run-command@v1
53+
with:
54+
command: openProject(pwd); HEVProject_runtests_CheckProject;
55+
56+
job-run-tests:
57+
58+
# This job starts only if the previous job is successful.
59+
needs: job-check-project
60+
3961
runs-on: ubuntu-latest
4062
steps:
4163

resources/project/p2B2kuKn-TR4inf0L2-zoGElvj0/KiJZcqH2S-YsjNJJaMFdrViZxmgp.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.

resources/project/p2B2kuKn-TR4inf0L2-zoGElvj0/MZyppz115tJClo6HllWYe0CtE64p.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version='1.0' encoding='UTF-8'?>
2-
<Info/>
2+
<Info location="ci.yml" type="File"/>

0 commit comments

Comments
 (0)