Merge pull request #254 from compnerd/test

CI: adjust the testing command
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c7873ee..c18e65f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,7 +22,7 @@
       - name: build
         run: cmake --build build --config Debug
       - name: test
-        run: ctest build
+        run: cmake --build build --config Debug --target RUN_TESTS
 
   macOS:
     runs-on: macos-latest
@@ -40,7 +40,7 @@
       - name: build
         run: cmake --build build --config Debug
       - name: test
-        run: ctest build
+        run: cmake --build build --config Debug --target test
 
   ubuntu:
     runs-on: ubuntu-latest
@@ -61,4 +61,4 @@
       - name: build
         run: cmake --build build --config Debug
       - name: test
-        run: ctest build
+        run: cmake --build build --config Debug --target test