Skip to content

Commit

Permalink
Add env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Apr 30, 2024
1 parent 5312683 commit 666a614
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test-benchmark/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ inputs:
description: "flag that tells the benchmark to run a certain language"
required: true
type: string
env-variables:
description: "Run the benchmark with the passed environment variables.
Should be formatted as a list of variable names and their values.
For example "ENV1=VALUE1 ENV2=VALUE2"
required: false
type: string

runs:
using: "composite"
Expand All @@ -15,4 +21,6 @@ runs:

- shell: bash
working-directory: ./benchmarks
run: echo $DOTNET_FRAMEWORK && ./install_and_test.sh -no-tls -minimal -only-glide -data 1 -tasks 10 ${{ inputs.language-flag }}
run: |
echo ${DOTNET_FRAMEWORK}
${{ inputs.env-variables }} ./install_and_test.sh -no-tls -minimal -only-glide -data 1 -tasks 10 ${{ inputs.language-flag }}

0 comments on commit 666a614

Please sign in to comment.