Skip to content

Commit 392af23

Browse files
committed
Add artillery key to workflow args
1 parent 809e006 commit 392af23

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/run_notify_load.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
description: 'Maximum number of virtual users to create'
2424
required: true
2525
default: '100'
26+
artillery_key:
27+
description: 'Your Artillery cloud API key (optional – omit to run without recording)'
28+
required: false
29+
default: ''
2630

2731
jobs:
2832
run_artillery:
@@ -40,6 +44,11 @@ jobs:
4044
echo "## duration : ${{ github.event.inputs.duration }}" >> "$GITHUB_STEP_SUMMARY"
4145
echo "## rampUpDuration : ${{ github.event.inputs.rampUpDuration }}" >> "$GITHUB_STEP_SUMMARY"
4246
echo "## maxVusers : ${{ github.event.inputs.maxVusers }}" >> "$GITHUB_STEP_SUMMARY"
47+
if [ -n "${{ github.event.inputs.artillery_key }}" ]; then
48+
echo "## artillery_key : (provided)" >> "$GITHUB_STEP_SUMMARY"
49+
else
50+
echo "## artillery_key : (not provided)" >> "$GITHUB_STEP_SUMMARY"
51+
fi
4352
4453
- name: Checkout repo
4554
uses: actions/checkout@v4
@@ -65,7 +74,7 @@ jobs:
6574
with:
6675
asdf_branch: v0.14.0
6776
env:
68-
PYTHON_CONFIGURE_OPTS: --enable-shared
77+
PYTHON_CONFIGURE_OPTS: --enable-shared
6978

7079
- name: Install Dependencies
7180
run: make install
@@ -94,6 +103,7 @@ jobs:
94103
duration: ${{ github.event.inputs.duration }}
95104
rampUpDuration: ${{ github.event.inputs.rampUpDuration }}
96105
maxVusers: ${{ github.event.inputs.maxVusers }}
106+
artillery_key: ${{ github.event.inputs.artillery_key }}
97107
run: |
98108
./scripts/run_notify_load_test.sh
99109

0 commit comments

Comments
 (0)