-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (39 loc) · 1.06 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
# allows to run manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Run MATLAB Tests
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: R2020b
- name: Run tests and generate artifacts
uses: matlab-actions/run-tests@v1
with:
source-folder: src
select-by-folder: test
test-results-junit: test-results/results.xml
code-coverage-cobertura: code-coverage/coverage.xml
- name: Publish Unit Test Results
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: test-results/results.xml
- name: Code Coverage Summary Report
uses: codecov/codecov-action@v2
with:
files: code-coverage/coverage.xml