-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 758 Bytes
/
test.yml
File metadata and controls
31 lines (29 loc) · 758 Bytes
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
name: Tests
on:
push:
paths:
- "include/**"
- "src/**"
- "tests/**"
- ".github/workflows/test.yml"
pull_request:
paths:
- "include/**"
- "src/**"
- "tests/**"
- ".github/workflows/test.yml"
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --target unit-tests
- name: Run tests
run: cd ${{github.workspace}}/build && ctest --output-on-failure