From 8764ecc4c1e98896939723e8d9b6c7eeeb844fed Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 9 Mar 2023 17:47:46 +0100 Subject: [PATCH] .github/workflows/CI.yml: build and run tests. --- .github/workflows/CI.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5d91bbe..084ac2a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,12 +30,16 @@ jobs: if [ "$RUNNER_OS" == "macOS" ]; then SSL_OPTS="-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1" fi - cmake ${SSL_OPTS} -B build + cmake -DENABLE_TESTING=ON ${SSL_OPTS} -B build - name: Build shell: bash run: cmake --build build + - name: Test + shell: bash + run: ctest --verbose --test-dir build -C Debug + - name: Upload artifact uses: actions/upload-artifact@v1 with: