From 9e7240f8168a62693b3838e073cfdb3015c162c9 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Mon, 25 Mar 2024 14:40:21 +0700 Subject: [PATCH] ci: add `test-action-with-additional-options` job --- .github/workflows/test.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 23d8cf0..7f0e0a0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -134,6 +134,32 @@ jobs: with: run-build: false + test-action-with-additional-options: + name: Test Action With Additional Options + runs-on: ubuntu-latest + steps: + - name: Checkout Project + uses: actions/checkout@v4.1.2 + with: + repository: threeal/cpp-starter + + - name: Checkout Action + uses: actions/checkout@v4.1.2 + with: + path: cmake-action + sparse-checkout: | + action.yml + dist + sparse-checkout-cone-mode: false + + - name: Configure and Build Project + uses: ./cmake-action + with: + options: BUILD_TESTING=ON + + - name: Test Project + uses: threeal/ctest-action@v1.0.0 + test-action-with-custom-generator: name: Test Action With Custom Generator runs-on: ubuntu-latest