add workflow job to test this action using additional arguments

This commit is contained in:
Alfi Maulana 2023-01-08 11:55:37 +07:00
parent 1410df2e18
commit f90a3ab334
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -52,3 +52,21 @@ jobs:
- name: Check if default build directory is not exist
run: test ! -d build
use-action-with-other-args:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0
- name: Use this action with build txt enabled
uses: ./
with:
source-dir: test
args: -D BUILD_TXT=ON
- name: Run build result
run: build/hello_world
- name: Check if the txt result exist
run: cat build/hello_world.txt