From aa708e403357598bb7dcd76244fdcd58b1e38e0d Mon Sep 17 00:00:00 2001 From: kimci86 Date: Mon, 22 Jan 2024 21:41:02 +0100 Subject: [PATCH] Run tests on CI --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 577cd65..270f466 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,12 +19,15 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Configure CMake - run: cmake -S . -B build ${{matrix.platform.cmake-config}} + - name: Configure project + run: cmake -S . -B build -DBKCRACK_BUILD_TESTING=ON ${{matrix.platform.cmake-config}} - name: Build project run: cmake --build build --config Release + - name: Run tests + run: ctest --test-dir build -C Release --output-on-failure + - name: Create package run: cmake --build build --config Release --target package