-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.39 KB
/
execute-performance.yaml
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
name: Execute performance tests
on:
schedule:
- cron: "0 1 * * 1"
workflow_dispatch:
inputs:
keda_version:
description: "KEDA version to be used (it must be a valid tag)"
required: false
type: string
jobs:
execute:
name: Execute performance tests
runs-on: ubuntu-latest
concurrency: performance-tests
env:
KEDA_DOCKER_TAG: main
KEDA_GITHUB_TAG: main
steps:
- uses: actions/checkout@v3
- name: Override KEDA version
if: ${{ inputs.keda_version }}
uses: trevorlloydelliott/[email protected]
with:
KEDA_DOCKER_TAG: ${{ inputs.keda_version }}
KEDA_GITHUB_TAG: v${{ inputs.keda_version }}
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
- name: Get cluster context
run: make get-cluster-context
- name: Scale cluster
run: make scale-node-pool
env:
NODE_POOL_SIZE: 3
- name: Deploy dependencies
run: make deploy
- name: Execute performance tests
run: make execute-k6
env:
REPO_BRANCH: ${{ github.ref_name }}
- name: Cleanup dependencies
run: make undeploy
if: ${{ always() }}
- name: Scale cluster
if: ${{ always() }}
run: make scale-node-pool
env:
NODE_POOL_SIZE: 1