Skip to content

Commit

Permalink
Adding unit test to build
Browse files Browse the repository at this point in the history
  • Loading branch information
ihedvall committed Jan 24, 2024
1 parent 6a030a0 commit ac7b9d2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,21 @@ jobs:
with:
platform: ${{ matrix.env.ninja_platform }}

- name: GTEST Install
uses: MarkusJx/googletest-installer@master

- name: CMAKE Configure
env: ${{ matrix.env.cmake_env }}
run: cmake -G Ninja -B ${{github.workspace}}/build
run: cmake -G Ninja -B ${{github.workspace}}/build -D DBC_TEST=ON

- name: CMAKE Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: CTEST Unit Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}

# install for testing
# - name: Install
Expand Down

0 comments on commit ac7b9d2

Please sign in to comment.