Skip to content

Commit 9af219e

Browse files
author
vikrants
committed
Adding test runners
1 parent c6fb818 commit 9af219e

15 files changed

+83
-0
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 2024 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+
40+
job-check-project:
41+
runs-on: ubuntu-latest
42+
steps:
43+
44+
- name: Check out repository
45+
uses: actions/checkout@v3
46+
47+
- name: Setup MATLAB
48+
uses: matlab-actions/setup-matlab@v1
49+
with:
50+
release: R2024a
51+
52+
- name: Run tests
53+
uses: matlab-actions/run-command@v1
54+
with:
55+
command: openProject(pwd); BuildingEnergyManagementTestRunner;
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"/>
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="3a7aa83e-cfee-4843-b649-bb1e81798894" type="Reference"/>
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 location="6f6db4cd-7e97-4bc8-9b3f-66da823f5799" type="Reference"/>
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="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"/>
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/>

0 commit comments

Comments
 (0)