Skip to content

Commit

Permalink
Run UI tests on PRs with "ui" label (#20209)
Browse files Browse the repository at this point in the history
* add conditional for label

* VAULT-14643 link jira
  • Loading branch information
hellobontempo authored Apr 18, 2023
1 parent aec09aa commit f5dd114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,14 @@ jobs:
# The test-ui job is only run on:
# - pushes to main and branches starting with "release/"
# - PRs where the branch starts with "ui/", "backport/ui/", "merge", or when base branch starts with "release/"
# - PRs with the "ui" label on github
if: |
github.ref_name == 'main' ||
startsWith(github.ref_name, 'release/') ||
startsWith(github.head_ref, 'ui/') ||
startsWith(github.head_ref, 'backport/ui/') ||
startsWith(github.head_ref, 'merge')
startsWith(github.head_ref, 'merge') ||
contains(github.event.pull_request.labels.*.name, 'ui')
needs:
- setup
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/milestone-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
# checks that a milestone entry is present for a PR
milestone-check:
# If there a `pr/no-milestone` label we ignore this check
# If there is a `pr/no-milestone` label we ignore this check
if: "!contains(github.event.pull_request.labels.*.name, 'pr/no-milestone')"
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f5dd114

Please sign in to comment.