Skip to content

Create unit-test.yml #12

Create unit-test.yml

Create unit-test.yml #12

Workflow file for this run

# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: Unit test
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build-project:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build test
run: |
mkdir build
cd build
cmake ../../ -DTEST=ON
make
- name: run test
run: |
cd bin
ctest --output-on-failure