Skip to content

Commit e3811fd

Browse files
Add GitHub Actions
1 parent 9a0d693 commit e3811fd

File tree

9 files changed

+76
-0
lines changed

9 files changed

+76
-0
lines changed

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# GitHub Actions Workflow with MATLAB Actions
2+
#
3+
# For a general overview of GitHub Actions, see
4+
# https://docs.github.com/en/actions
5+
#
6+
# For using MathWorks products in GitHub Actions, see
7+
# https://github.com/matlab-actions/overview
8+
#
9+
# For details about the syntax of this file, see
10+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
11+
12+
# Copyright 2025 The MathWorks, Inc.
13+
14+
name: CI using MATLAB
15+
16+
on:
17+
push:
18+
paths-ignore:
19+
- 'docs/**'
20+
- '**.md'
21+
- '**.png'
22+
- '**.svg'
23+
- '**.txt'
24+
- '**.xml'
25+
26+
pull_request:
27+
paths-ignore:
28+
- 'docs/**'
29+
- '**.md'
30+
- '**.png'
31+
- '**.svg'
32+
- '**.txt'
33+
- '**.xml'
34+
35+
schedule:
36+
- cron: '55/61 20/25 1/6 * *' # schedule a weekly-ish build
37+
38+
jobs:
39+
job-EV-Charging-Station-Placement-unit-tests:
40+
runs-on: ubuntu-latest
41+
steps:
42+
43+
- name: Check out repository
44+
uses: actions/checkout@v4
45+
46+
- name: Setup MATLAB
47+
uses: matlab-actions/setup-matlab@v2
48+
with:
49+
release: R2025a
50+
cache: true
51+
products: |
52+
Simulink
53+
Simscape
54+
Simscape_Electrical
55+
Optimization_Toolbox
56+
Global_Optimization_Toolbox
57+
Parallel_Computing_Toolbox
58+
59+
- name: Run tests
60+
uses: matlab-actions/run-command@v2
61+
with:
62+
command: openProject(pwd); testRunnerEVChargingStationPlacement;
0 Bytes
Binary file not shown.
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/>
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/>
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 Ref=".github/workflows" Type="Relative"/>
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 Ref=".github" Type="Relative"/>

0 commit comments

Comments
 (0)