Skip to content

fixed use of wrong directory #8

fixed use of wrong directory

fixed use of wrong directory #8

name: t3search loadtest smoketest
on:
push:
branches:
- '**'
paths:
- performance-tests/t3search/**
- .github/workflows/t3search-loadtest-push.yml
jobs:
run-t3search-on-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate tokens
working-directory: ./performance-tests/t3search/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/t3search/src/t3search.js
flags: --vus=1 --iterations=1
env:
subscription_key: ${{ secrets.SUBSCRIPTION_KEY }}