-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cron schedule for executing the test suite weekly
Signed-off-by: Jorge Turrado <[email protected]>
- Loading branch information
Showing
2 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
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() }} |
This file contains 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