From 998036a1bcec6babce30ad42319206d34d455d03 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Mon, 25 Mar 2024 11:17:43 +0700 Subject: [PATCH] ci: fix test directory location --- .github/workflows/test.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 580c7d1..289b4f3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -71,7 +71,6 @@ jobs: run: mv test/* . - name: Configure and Build Project - id: cmake-action uses: ./ - name: Test Project @@ -135,6 +134,7 @@ jobs: continue-on-error: true uses: threeal/ctest-action@v1.0.0 with: + test-dir: ${{ steps.cmake-action.outputs.build-dir }} tests-regex: hello_world - name: Previous Step Should Failed @@ -159,6 +159,7 @@ jobs: sparse-checkout-cone-mode: false - name: Configure and Build Project + id: cmake-action uses: ./ with: source-dir: test @@ -170,6 +171,7 @@ jobs: - name: Test Project uses: threeal/ctest-action@v1.0.0 with: + test-dir: ${{ steps.cmake-action.outputs.build-dir }} build-config: Debug tests-regex: test @@ -194,6 +196,7 @@ jobs: uses: seanmiddleditch/gha-setup-ninja@v4 - name: Configure and Build Project + id: cmake-action uses: ./ with: source-dir: test @@ -206,4 +209,5 @@ jobs: - name: Test Project uses: threeal/ctest-action@v1.0.0 with: + test-dir: ${{ steps.cmake-action.outputs.build-dir }} tests-regex: test