Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for custom shells #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI.
# If you're instrumenting a public repository, you can omit this value
token: ""

# [OPTIONAL]
# The shell to run commands in.
# Defaults to bash.
# ⚠️ WARNING: if you use `defaults.run.shell`, you must still set this parameter.
shell: ""

# [REQUIRED]
# The command used to run your codspeed benchmarks
run: ""
Expand Down
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ inputs:
token:
description: "CodSpeed upload token"
required: false
shell:
description: |
The shell to run commands in.
Warning: if you use defaults.run.shell, you must still set this parameter.
required: false
default: bash
run:
description: "The command to run the benchmarks"
required: true
Expand Down Expand Up @@ -40,7 +46,7 @@ inputs:
runs:
using: "composite"
steps:
- shell: bash
- shell: ${{ inputs.shell }}
run: |
# Configure and run codspeed-runner

Expand Down