Skip to content

Commit 06ee356

Browse files
authored
fix: workaround for github number error in dispatch workflow (#1367)
<!--- Provide a general summary of your changes in the Title above --> Workaround for issue mentioned here: https://github.com/orgs/community/discussions/67182 Made testSuitePath a type choice and added tests to the list <!--- Describe your changes in detail --> ## Related Issue(s) - #1326 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced input handling for performance tests, allowing users to select from predefined test suite paths. - Improved processing of virtual users (VUs) input for better validation and structure. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 94c5544 commit 06ee356

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/dispatch-k6-performance.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ on:
2929
vus:
3030
description: 'Number of VUS'
3131
required: true
32-
type: number
3332
default: 10
33+
type: number
3434
duration:
3535
description: 'Duration of test, ie 30s, 1m, 10m'
3636
required: true
@@ -40,6 +40,10 @@ on:
4040
description: 'Path to test suite to run'
4141
required: true
4242
default: 'tests/k6/tests/serviceowner/performance/create-dialog.js'
43+
type: choice
44+
options:
45+
- 'tests/k6/tests/serviceowner/performance/create-dialog.js'
46+
- 'tests/k6/tests/enduser/performance/simple-search.js'
4347

4448
jobs:
4549
k6-performance:
@@ -54,7 +58,7 @@ jobs:
5458
environment: ${{ inputs.environment }}
5559
apiVersion: ${{ inputs.apiVersion }}
5660
testSuitePath: ${{ inputs.testSuitePath }}
57-
vus: ${{ inputs.vus }}
61+
vus: ${{ fromJson(inputs.vus) }}
5862
duration: ${{ inputs.duration }}
5963
tokens: ${{ inputs.tokens }}
6064

0 commit comments

Comments
 (0)