Skip to content

Commit 3eb791e

Browse files
committed
ci: new test action
1 parent 92c00a6 commit 3eb791e

2 files changed

Lines changed: 46 additions & 101 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 101 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Robot CPP Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test-macos:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
submodules: recursive
16+
17+
- name: Install dependencies
18+
run: brew install cmake sdl2
19+
20+
- name: Configure
21+
run: cmake -B build
22+
23+
- name: Build
24+
run: cmake --build build
25+
26+
- name: Test
27+
run: |
28+
# macOS can run GUI apps in headless mode
29+
build/bin/RobotCPPSDLTest --gtest_filter=-*InteractiveMode --ci-mode true
30+
31+
# Note: Windows tests can be unstable in CI
32+
test-windows:
33+
runs-on: windows-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
with:
37+
submodules: recursive
38+
39+
- name: Configure
40+
run: cmake -B build
41+
42+
- name: Build
43+
run: cmake --build build --config Release
44+
45+
- name: Test
46+
run: build/bin/Release/RobotCPPSDLTest.exe --ci-mode true

0 commit comments

Comments
 (0)