From 84007e69c65b1102b775f7cc870b5b817073b5af Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Fri, 22 Mar 2024 18:00:53 +0700 Subject: [PATCH] ci: add test project step in other jobs --- .github/workflows/test.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 29ff9a1..580c7d1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -158,7 +158,7 @@ jobs: test sparse-checkout-cone-mode: false - - name: Configure, Build, and Test Project + - name: Configure and Build Project uses: ./ with: source-dir: test @@ -167,6 +167,12 @@ jobs: options: CHECK_SURPASS_WARNING=ON build-args: --target test_c --target test_cpp + - name: Test Project + uses: threeal/ctest-action@v1.0.0 + with: + build-config: Debug + tests-regex: test + test-action-with-custom-tools: name: Test Action With Custom Tools runs-on: ${{ matrix.os }}-latest @@ -187,7 +193,7 @@ jobs: - name: Setup Ninja uses: seanmiddleditch/gha-setup-ninja@v4 - - name: Configure, Build, and Test Project + - name: Configure and Build Project uses: ./ with: source-dir: test @@ -196,3 +202,8 @@ jobs: cxx-compiler: clang++ options: CHECK_USING_CLANG=ON build-args: --target test_c --target test_cpp + + - name: Test Project + uses: threeal/ctest-action@v1.0.0 + with: + tests-regex: test