From f90a3ab334f95eea207256aae972c6f5f09318b5 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 8 Jan 2023 11:55:37 +0700 Subject: [PATCH] add workflow job to test this action using additional arguments --- .github/workflows/test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 839cac9..70d3806 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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