Added Unit Tests

This commit is contained in:
2021-10-01 00:27:36 -07:00
parent 88a75e2ddd
commit 52f622b5c3
10 changed files with 271 additions and 454 deletions

27
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: test
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.9
with:
cmake-version: '3.13.x'
- name: Get Libraries
run: git submodule update --init --recursive
- name: Build
run: |
cmake -B build -DTARGET_GROUP=test
cmake --build ./build
- name: Test
run: |
./build/bin/tests