Skip to content

Commit 8320ddf

Browse files
committed
Use GitHub Actions
1 parent cec0bb8 commit 8320ddf

20 files changed

+77
-25
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# GitHub Actions Workflow with MATLAB Actions
2+
3+
# Copyright 2021 The MathWorks, Inc.
4+
5+
name: MATLAB Build
6+
7+
on:
8+
9+
push:
10+
branches: [ main ]
11+
12+
pull_request:
13+
branches: [ main ]
14+
15+
jobs:
16+
matlab-job:
17+
runs-on: ubuntu-latest
18+
steps:
19+
20+
- name: Check out repository
21+
uses: actions/checkout@v2
22+
23+
- name: Setup MATLAB
24+
uses: matlab-actions/setup-matlab@v1
25+
26+
- name: Run tests
27+
uses: matlab-actions/run-command@v1
28+
with:
29+
command: openProject('HybridElectricVehicle.prj'); HEV_RunTests_Simple;

.gitlab-ci.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
-1.31 KB
Binary file not shown.
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info>
3+
<Category UUID="FileClassCategory">
4+
<Label UUID="design" />
5+
</Category>
6+
</Info>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info location="HEV_RunTests_Simple.m" type="File" />
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info location="1" type="DIR_SIGNIFIER" />
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info />
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info location="workflows" type="File" />

0 commit comments

Comments
 (0)