From df9ba5d03cac443689f96428078af5c7cf5ea02c Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Thu, 2 May 2024 12:36:53 -0400 Subject: [PATCH] add nightly workflow to run CI tests Signed-off-by: Pranav Gaikwad --- .github/workflows/nightly.yaml | 27 +++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/nightly.yaml diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml new file mode 100644 index 0000000..9530dea --- /dev/null +++ b/.github/workflows/nightly.yaml @@ -0,0 +1,27 @@ +name: Nightly tests + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + inputs: + tag: + type: string + default: latest + description: Container image tag to use for testing + +jobs: + run_test_from_dispatch: + name: Run e2e test + if: github.event_name == 'workflow_dispatch' + uses: konveyor/kantra/.github/workflows/testing.yaml@main + with: + tag: ${{ inputs.tag }} + + run_test_on_cron_trigger: + name: Run e2e test + if: github.event_name != 'workflow_dispatch' + uses: konveyor/kantra/.github/workflows/testing.yaml@main + with: + tag: ${{ github.ref_name == 'main' && 'latest' || github.ref_name }} + diff --git a/README.md b/README.md index f0be1c4..8257115 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![Test](https://github.com/konveyor/kantra/actions/workflows/nightly.yaml/badge.svg?branch=main) + # Kantra Kantra is a CLI that unifies analysis and transformation capabilities of Konveyor. It is available for Linux, Mac and Windows.