From d4c133a7dc35c0a58c8f73cbe8b9313dbfb1a905 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Mon, 25 Mar 2024 13:31:56 +0700 Subject: [PATCH] ci: test action without build by modifying project instead --- .github/workflows/test.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7890da3..b7e949a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -121,6 +121,9 @@ jobs: test sparse-checkout-cone-mode: false + - name: Modify Project + run: echo 'invalid' >> cmake-action/test/hello_world.cpp + - name: Configure Project id: cmake-action uses: ./cmake-action @@ -128,18 +131,6 @@ jobs: source-dir: cmake-action/test run-build: false - - name: Try to Test Project - id: failed-step - 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 - if: steps.failed-step.outcome == 'success' - run: exit 1 - test-action-with-additional-args: name: Test Action With Additional Arguments runs-on: ${{ matrix.compiler == 'msvc' && 'windows' || 'ubuntu' }}-latest