fix action syntax #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Consumer Load Test' | ||
| permissions: | ||
| contents: read | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| minutes: | ||
| description: 'Timeout in minutes' | ||
| required: false | ||
| default: '60' | ||
| license-key: | ||
| description: 'License key for the test' | ||
| required: true | ||
| app-id: | ||
| description: 'App ID for the test' | ||
| required: true | ||
| entity-guid: | ||
| description: 'Entity GUID for the test' | ||
| required: true | ||
| jobs: | ||
| generate-matrix: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
| steps: | ||
| - id: set-matrix | ||
| run: | | ||
| MATRIX=$(seq 1 256 | jq -R . | jq -s .) | ||
| echo "matrix=$MATRIX" >> $GITHUB_OUTPUT | ||
| consumer-load-test: | ||
| needs: generate-matrix | ||
| strategy: | ||
| matrix: | ||
| runner: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} | ||
| secrets: inherit | ||
| timeout-minutes: ${{ github.event.inputs.minutes }} | ||
| steps: | ||
| name: 'Load test - Instance ${{ matrix.runner }}' | ||
| uses: ./.github/actions/consumer-load-test | ||
| with: | ||
| license-key: ${{ github.event.inputs.license-key }} | ||
| app-id: ${{ github.event.inputs.app-id }} | ||
| entity-guid: ${{ github.event.inputs.entity-guid }} | ||