Skip to content

Commit

Permalink
Skip tests on backported docs branches. (hashicorp#13612)
Browse files Browse the repository at this point in the history
* Remove unnecessary branch filters; we rely instead on exiting the jobs on inappropriate branches, since otherwise GH's required checks won't be satisfied.
  • Loading branch information
ncabatoff authored and Artem Alexandrov committed Feb 4, 2022
1 parent 0eeecd2 commit a932407
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
18 changes: 4 additions & 14 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .circleci/config/commands/exit-if-ui-or-docs-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
name: Check branch name
command: |
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* || "$CIRCLE_BRANCH" = backport/docs/* ]] && {
# stop the job from this step
circleci-agent step halt
}
Expand Down
12 changes: 0 additions & 12 deletions .circleci/config/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,9 @@ jobs:
- test-go-race:
requires:
- pre-flight-checks
filters:
branches:
# UI and Docs-only branches should skip go tests
ignore:
- /^docs\/.*/
- /^ui\/.*/
- test-go-race-remote-docker:
requires:
- pre-flight-checks
filters:
branches:
# UI and Docs-only branches should skip go tests
ignore:
- /^docs\/.*/
- /^ui\/.*/
- website-docker-image:
context: vault-docs
filters:
Expand Down

0 comments on commit a932407

Please sign in to comment.