Skip to content

Commit

Permalink
Add cron schedule for executing the test suite weekly
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer committed Aug 27, 2023
1 parent 03c4b82 commit f6d2383
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/execute-performance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Execute performance tests
on:
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:
inputs:
version:
description: 'KEDA version to be used (it must be a valid tag)'
required: true
type: string

jobs:
execute:
name: Execute performance tests
runs-on: ubuntu-latest
concurrency: performance-tests
environment:
VERSION: main
steps:
- uses: actions/checkout@v3

- name: Override KEDA version
if: ${{ inputs.version }}
uses: trevorlloydelliott/set-environment-variables@latest
with:
VERSION: ${{ inputs.version }}

- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}

- name: Get cluster context
run: make get-cluster-context

- name: Deploy dependencies
run: make deploy

- name: Execute performance tests
run: make execute-k6

- name: Cleanup dependencies
run: make undeploy
if: ${{ always() }}
4 changes: 0 additions & 4 deletions .github/workflows/performance-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Execute performance tests
on:
push:
branches:
- main
pull_request: {}
workflow_dispatch: {}

jobs:
execute:
Expand Down

0 comments on commit f6d2383

Please sign in to comment.