Added search to action #6
This file contains 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: dialogporten loadtest smoketest | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- performance-tests/dialogporten/** | |
- .github/workflows/dialogporten-loadtest-push.yml | |
jobs: | |
run-dialogporten-on-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: Install xk6 | |
run: go install go.k6.io/xk6/cmd/xk6@latest | |
- name: Build xk6-counter binary | |
working-directory: ./performance-tests/dialogporten/src | |
run: xk6 build --with github.com/avitalique/xk6-file@latest | |
- name: Run k6 to generate tokens | |
working-directory: ./performance-tests/dialogporten/src | |
run: | | |
mkdir ../data/.tmp | |
./k6 run generate-tokens.js | |
env: | |
env: tt02 | |
tokengenuser: dpoctest | |
tokengenuserpwd: digdirbnn73520 | |
limit: 1 | |
- name: Run K6 test | |
working-directory: ./performance-tests/dialogporten/src | |
run: | | |
./k6 run create-dialog.js --vus=1 --iterations=1 | |
./k6 run search-graphql.js --vus=1 --iterations=1 | |
env: | |
env: tt02 | |