Skip to content

Manual run performance test #15

Manual run performance test

Manual run performance test #15

name: Manual run performance test
on:
workflow_dispatch:
defaults:
run:
shell: bash
permissions: write-all
jobs:
manual-run-performance-test:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/uat'
strategy:
matrix:
environment: [uat]
name: "manual-run-performance-test"
runs-on: ubuntu-latest
environment: ${{ matrix.environment }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run k6 local test
uses: grafana/[email protected]
env:
MODEL_APPLICATION_BASE_URL: ${{ vars.APPLICATION_BASE_URL }}
MODEL_APPLICATION_BASE_PATH: ${{ vars.APPLICATION_BASE_PATH }}
MODEL_APPLICATION_KEY: ${{ secrets.APPLICATION_KEY }}
with:
filename: performance_test/run_performance_tests.js
- name: Upload performance test file
if: always()
uses: actions/upload-artifact@v3
with:
name: performance-report
path: performance_summary.html