Skip to content

Commit

Permalink
[CI] allow for manual triggered jobs to accept inputs
Browse files Browse the repository at this point in the history
Utilizing the GitHub `workflow_dispatch`, we can trigger
a job with a specific input.

Here we are allowing for tests to be ran pulling down from:
https://github.com/opensearch-project/opensearch-dashboards-functional-test

This workflow uses the target branch of the PR to pull down
from the FTRepo and run the tests from that specific branch.

For example, PRs against `main` will pull down `main` from
the FTRepo.

The problem occurs when new functionality is opened or a bug is
fixed and, per industry standard, we want to see tests added
to ensure functionality, stability, and raise the bar.

But the cypress tests PR into the FTRepo depends on the new code
to be merged for the CI within the FTRepo to work. So we have a
stalemate that usually slows down PR review time.

Here, a manual run can be triggered using the branch provided by
the maintainer who ran the job.

Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Sep 27, 2023
1 parent 6ca6227 commit 534041d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cypress_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
branches: [ '**' ]
paths-ignore:
- '**/*.md'
workflow_dispatch:
inputs:
branch:
description: 'Execute tests from this branch'
required: true
default: '${{ github.base_ref }}'
type: string


env:
FTR_PATH: 'ftr'
Expand Down

0 comments on commit 534041d

Please sign in to comment.