Skip to content

Commit

Permalink
feat(workflows): add options for input flags and specify shell
Browse files Browse the repository at this point in the history
  • Loading branch information
beeauvin committed Jun 9, 2023
1 parent 75abca0 commit 9ba35b9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
8 changes: 6 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,24 @@ 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 }}

lint:
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 }}
1 change: 1 addition & 0 deletions .github/workflows/npx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jobs:

- name: npx:${{ inputs.command }}
run: npx ${{ inputs.command }}
shell: bash
1 change: 1 addition & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jobs:

- name: run:${{ inputs.command }}
run: npm run ${{ inputs.command }}
shell: bash
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,24 @@ 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 }}

e2e:
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 }}

0 comments on commit 9ba35b9

Please sign in to comment.