From 17a40c86ca19f4b985f91a9fca6608a5722c466e Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 11 Jan 2023 15:52:55 +0700 Subject: [PATCH] add `use-action-with-specified-targets` to test `targets` input in workflow --- .github/workflows/test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4a4e33..e74dd59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,6 +39,21 @@ jobs: - name: Check if the default build directory does not exist run: test ! -d build + use-action-with-specified-targets: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3.3.0 + + - name: Use this action with specified targets + uses: ./ + with: + source-dir: test + targets: test + + - name: Run build result + run: build/test + use-action-with-specified-compiler: runs-on: ubuntu-latest strategy: