Skip to content

test(load-tests): fix imports; add missing one and remove unused #2

test(load-tests): fix imports; add missing one and remove unused

test(load-tests): fix imports; add missing one and remove unused #2

name: Run K6 performance test
on:
workflow_dispatch:
inputs:
apiVersion:
description: 'API Version'
required: true
default: 'v1'
environment:
description: 'Environment'
required: true
default: 'staging'
type: choice
options:
- test
- staging
- performance
tokens:
description: 'Tokens to generate; for create dialog, search, ingen eller begge'
required: true
default: 'both'
type: choice
options:
- both
- enterprise
- personal
- none
vus:
description: 'Number of VUS'
required: true
type: number
default: 10
duration:
description: 'Duration of test, ie 30s, 1m, 10m'
required: true
default: 1m
type: string
testSuitePath:
description: 'Path to test suite to run'
required: true
default: 'tests/k6/tests/serviceowner/performance/createremove-no-delay.js'
jobs:
k6-performance:
name: "Run K6 performance test"
uses: ./.github/workflows/performance-workflows/workflow-run-k6-performance.yml

Check failure on line 47 in .github/workflows/dispatch-k6-performance.yml

View workflow run for this annotation

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

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
secrets:
TOKEN_GENERATOR_USERNAME: ${{ secrets.TOKEN_GENERATOR_USERNAME }}
TOKEN_GENERATOR_PASSWORD: ${{ secrets.TOKEN_GENERATOR_PASSWORD }}
K6_CLOUD_TOKEN: ${{ secrets.K6_CLOUD_TOKEN }}
K6_CLOUD_PROJECT_ID: ${{ secrets.K6_CLOUD_PROJECT_ID }}
with:
environment: ${{ inputs.environment }}
apiVersion: ${{ inputs.apiVersion }}
testSuitePath: ${{ inputs.testSuitePath }}
vus: ${{ inputs.vus }}
duration: ${{ inputs.duration }}
tokens: ${{ inputs.tokens }}