-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.02 KB
/
performance-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Manual run performance test
on:
workflow_dispatch:
defaults:
run:
shell: bash
permissions: write-all
jobs:
manual-create-pre-release:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev'
strategy:
matrix:
environment: [dev]
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