Added bash-script to create tokens (#100) #30
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: taxreport loadtest smoketest | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- performance-tests/tax-report/** | |
- .github/workflows/taxreport-loadtest-push.yml | |
jobs: | |
run-taxreport-on-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Generate tokens | |
working-directory: ./performance-tests/tax-report/src | |
run: ../../generate-tokens/src/generate-tokens.sh ../../generate-tokens/src 1 | |
env: | |
API_ENVIRONMENT: ${{ secrets.YTENVIRONMENT }} | |
TOKEN_GENERATOR_USERNAME: ${{ secrets.TOKENGENUSER }} | |
TOKEN_GENERATOR_PASSWORD: ${{ secrets.TOKENGENPWD }} | |
- name: Setup K6 | |
uses: grafana/setup-k6-action@v1 | |
- name: Run local k6 test | |
uses: grafana/run-k6-action@v1 | |
with: | |
path: performance-tests/tax-report/src/tax-report.js | |
flags: --vus=1 --iterations=1 | |
env: | |
serviceowner: ${{ secrets.OWNER }} | |