Skip to content

Commit 9ba7268

Browse files
ci: add ctest workflow
1 parent aee59a5 commit 9ba7268

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ctest.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Run unit tests using CTest
2+
name: Tests
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
jobs:
11+
checkout-and-check-formatting:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Run unit tests
17+
uses: HorstBaerbel/[email protected]
18+
# These are optional (defaults displayed)
19+
with:
20+
sourcedir: "."
21+
builddir: "build"
22+
cmakeoptions: "-DENABLE_TESTING ON"
23+
ctestoptions: "--timeout 5"

0 commit comments

Comments
 (0)