Skip to content

Commit 687bc6a

Browse files
alan-agius4vikerman
authored andcommitted
ci: enable snapshot e2e for renovate PRs
snapshots builds are required to be run when the PR is created by renovate. This is because we have renovate jobs that update the snapshots commit SHA and we want to verify that these are green prior to merging them. Related to: #14687
1 parent ab80209 commit 687bc6a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.circleci/config.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ executors:
6060
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-commands
6161
commands:
6262
setup_windows:
63-
steps:
63+
steps:
6464
- checkout
6565
- run:
6666
# Need to install node and yarn before, as the base windows image doesn't have anything.
@@ -358,9 +358,16 @@ workflows:
358358
- e2e-cli:
359359
name: e2e-cli-ng-snapshots
360360
snapshots: true
361-
<<: *ignore_pull_requests
362361
requires:
363362
- e2e-cli
363+
pre-steps:
364+
- run:
365+
name: Don't run expensive e2e snapshots tests for forks other than renovate-bot and angular
366+
command: >
367+
if [[ "$CIRCLE_PR_USERNAME" != "renovate-bot" ]] &&
368+
[[ "$CIRCLE_PROJECT_USERNAME" != "angular" || $CIRCLE_BRANCH != "master" ]]; then
369+
circleci step halt
370+
fi
364371
- e2e-cli-node-10:
365372
<<: *ignore_pull_requests
366373
requires:

0 commit comments

Comments
 (0)