ci: add test-action-with-additional-options job

This commit is contained in:
Alfi Maulana 2024-03-25 14:40:21 +07:00
parent 2e16a1b0a6
commit 9e7240f816
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -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