From 9ba35b9f6f83f741723b2ef041608d593f264a3f Mon Sep 17 00:00:00 2001 From: Cassidy Spring <79487947+cassiecascade@users.noreply.github.com> Date: Fri, 9 Jun 2023 02:55:00 -0700 Subject: [PATCH] feat(workflows): add options for input flags and specify shell --- .github/workflows/build.yml | 6 +++++- .github/workflows/check.yml | 8 ++++++-- .github/workflows/npx.yml | 1 + .github/workflows/run.yml | 1 + .github/workflows/test.yml | 8 ++++++-- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4136c4e..94eefb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,12 +15,16 @@ on: description: node environment to use required: false type: string + flags: + description: flags to pass to npm + required: false + type: string jobs: build: name: 🏗️ uses: cassiecascade/houseplant/.github/workflows/run.yml@main with: - command: build + command: build ${{ inputs.flags }} node-version: ${{ inputs.node-version }} node-environment: ${{ inputs.node-environment }} diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a0d0876..5670823 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,13 +15,17 @@ on: description: node environment to use required: false type: string + flags: + description: flags to pass to the command + required: false + type: string jobs: format: name: ☑️ uses: cassiecascade/houseplant/.github/workflows/run.yml@main with: - command: check:format + command: check:format ${{ inputs.flags }} node-version: ${{ inputs.node-version }} node-environment: ${{ inputs.node-environment }} @@ -29,6 +33,6 @@ jobs: name: ☑️ uses: cassiecascade/houseplant/.github/workflows/run.yml@main with: - command: check:lint + command: check:lint ${{ inputs.flags }} node-version: ${{ inputs.node-version }} node-environment: ${{ inputs.node-environment }} diff --git a/.github/workflows/npx.yml b/.github/workflows/npx.yml index 892dfcf..f15a4c7 100644 --- a/.github/workflows/npx.yml +++ b/.github/workflows/npx.yml @@ -40,3 +40,4 @@ jobs: - name: npx:${{ inputs.command }} run: npx ${{ inputs.command }} + shell: bash diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 7d0211a..a4cff96 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -40,3 +40,4 @@ jobs: - name: run:${{ inputs.command }} run: npm run ${{ inputs.command }} + shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a8ac56..ffb0dd5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,13 +15,17 @@ on: description: node environment to use required: false type: string + flags: + description: flags to pass to the command + required: false + type: string jobs: unit: name: 🧪 uses: cassiecascade/houseplant/.github/workflows/run.yml@main with: - command: test:unit + command: test:unit ${{ inputs.flags }} node-version: ${{ inputs.node-version }} node-environment: ${{ inputs.node-environment }} @@ -29,6 +33,6 @@ jobs: name: 🧪 uses: cassiecascade/houseplant/.github/workflows/run.yml@main with: - command: test:e2e + command: test:e2e ${{ inputs.flags }} node-version: ${{ inputs.node-version }} node-environment: ${{ inputs.node-environment }}