perf: add k6 ramp-and-hold spike scenario (Closes #457) #1
Workflow file for this run
This file contains hidden or 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: k6 Spike Test | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'tests/k6/**' | |
| - '.github/workflows/k6-spike-test.yml' | |
| jobs: | |
| spike: | |
| name: Plans read-path spike (10 -> 2000 VUs) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run k6 spike profile | |
| uses: grafana/k6-action@v0.3.1 | |
| with: | |
| filename: tests/k6/plans-spike.js | |
| flags: --summary-export=results/k6-spike-summary.json | |
| env: | |
| BASE_URL: ${{ secrets.STAGING_URL }} | |
| API_KEY: ${{ secrets.STAGING_API_KEY }} | |
| - name: Publish JSON summary artifact | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: k6-spike-summary | |
| path: results/k6-spike-summary.json | |
| if-no-files-found: warn |