Implement unit testing (#30)
- Create `test` and `tactility-core-tests` subprojects - Created tests for `thread.c` - Fixed issue with thread cleanup (see what I did there? :P) - Removed functions from `thread.h` that did not exist anymore - Updated `ideas.md`
This commit is contained in:
committed by
GitHub
parent
50e7fb92c8
commit
47377439dd
@@ -0,0 +1,20 @@
|
||||
name: Tests
|
||||
on: [push]
|
||||
jobs:
|
||||
Build-PC:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SKIP_SDL: true
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Configure Project
|
||||
uses: threeal/cmake-action@v1.3.0
|
||||
- name: Prepare Project
|
||||
run: cmake -S ./ -B build
|
||||
- name: Build Tests
|
||||
run: cmake --build build --target build-tests
|
||||
- name: Run Tests
|
||||
run: build/tests/tactility-core/tactility-core-tests --exit
|
||||
Reference in New Issue
Block a user