Skip to content

Commit bba0fa3

Browse files
author
Ganeshwara Herawan Hananda
authored
Use release-validate-deps to ensure that Console depends on released versions of common, console, graql, protocol , and client-java (#3)
## What is the goal of this PR? We have added a validation step using `//ci:release-validate-deps` in order to ensure that console is releasable only if it depends on released versions of common, console, graql, protocol , and client-java.
1 parent a5c26cf commit bba0fa3

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.circleci/config.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ jobs:
9696
export RELEASE_APPROVAL_TOKEN=$REPO_GITHUB_TOKEN
9797
bazel run @graknlabs_build_tools//ci:release-approval
9898
99+
release-validate:
100+
machine: true
101+
steps:
102+
- install-bazel-linux-rbe
103+
- checkout
104+
- run: |
105+
bazel run @graknlabs_build_tools//ci:release-validate-deps -- \
106+
graknlabs_common graknlabs_graql graknlabs_protocol graknlabs_client_java
107+
99108
deploy-github:
100109
machine: true
101110
working_directory: ~/console
@@ -150,7 +159,7 @@ jobs:
150159
machine: true
151160
steps:
152161
- checkout
153-
- run: git push --delete origin console-release-branch
162+
- run: git push --delete https://[email protected]/graknlabs/console $CIRCLE_BRANCH
154163

155164
workflows:
156165
console:
@@ -187,10 +196,16 @@ workflows:
187196

188197
console-release:
189198
jobs:
199+
- release-validate:
200+
filters:
201+
branches:
202+
only: console-release-branch
190203
- deploy-github:
191204
filters:
192205
branches:
193206
only: console-release-branch
207+
requires:
208+
- release-validate
194209
- deploy-approval:
195210
type: approval
196211
requires:

0 commit comments

Comments
 (0)