Skip to content

Commit a1c969c

Browse files
author
Magnus Gustafsson
authored
Merge pull request #8 from Unit-X/star-229-automatic-unittests
STAR-229: automatically run unit tests
2 parents 8595d8d + 631796c commit a1c969c

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/unit_test.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: unit_tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test-release:
11+
12+
runs-on: tobbe-nuc-stardom
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: CMake set-up for release
17+
run: |
18+
rm -rf build
19+
mkdir build
20+
cd build
21+
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
22+
- name: Build release
23+
run: |
24+
cd build
25+
make runUnitTests
26+
- name: Run tests with release
27+
run: |
28+
cd build
29+
./runUnitTests
30+
31+
test-debug:
32+
33+
runs-on: tobbe-nuc-stardom
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: CMake set-up for debug
38+
run: |
39+
rm -rf build
40+
mkdir build
41+
cd build
42+
cmake -DCMAKE_BUILD_TYPE=Debug ..
43+
- name: Build debug
44+
run: |
45+
cd build
46+
make runUnitTests
47+
- name: Run tests with debug
48+
run: |
49+
cd build
50+
./runUnitTests

0 commit comments

Comments
 (0)