-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (56 loc) · 1.82 KB
/
manual-load-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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Manual Load Test
on:
workflow_dispatch:
inputs:
environment:
description: "Environment to test"
required: true
default: int
type: choice
options:
- test
- int
- prod
gql-server-side-cache:
description: "Enable GraphQL server-side cache"
required: true
default: true
type: boolean
cloud:
description: "Enable K6 Cloud"
required: true
default: false
type: boolean
env:
ENV: ${{ inputs.environment }}
ENABLE_GQL_SERVER_SIDE_CACHE: ${{ inputs.gql-server-side-cache }}
jobs:
k6:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Testing GraphQL - Components
if: always()
uses: grafana/[email protected]
with:
filename: k6/load-tests/graphql/components.js
cloud: ${{ inputs.cloud }}
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
flags: --env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{ env.ENABLE_GQL_SERVER_SIDE_CACHE }}
- name: Testing GraphQL - Observations
if: always()
uses: grafana/[email protected]
with:
filename: k6/load-tests/graphql/observations.js
cloud: ${{ inputs.cloud }}
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
flags: --env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{ env.ENABLE_GQL_SERVER_SIDE_CACHE }}
- name: Testing HAR - Edition
if: always()
uses: grafana/[email protected]
with:
filename: k6/load-tests/har/${{ env.ENV }}/edition.js
cloud: ${{ inputs.cloud }}
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
flags: --env ENABLE_GQL_SERVER_SIDE_CACHE=${{ env.ENABLE_GQL_SERVER_SIDE_CACHE }}