Skip to content

Commit 6cde866

Browse files
authored
Merge pull request #325 from wordpress-mobile/gem-push-dependencies
CI: Make gem push step depend on other checks
2 parents 2d19116 + 52c09df commit 6cde866

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.buildkite/pipeline.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Nodes with values to reuse in the pipeline.
22
common_params:
33
plugins: &common_plugins
4-
- &bash_cache automattic/bash-cache#v1.3.2: ~
4+
- &bash_cache automattic/bash-cache#2.0.0: ~
55
env: &common_env
66
IMAGE_ID: xcode-12.5.1
77

@@ -10,7 +10,7 @@ steps:
1010
# Build and Test
1111
#################
1212
- label: "🧪 Build and Test"
13-
key: "test"
13+
key: test
1414
command: |
1515
.buildkite/install-dependencies.sh
1616
@@ -30,7 +30,8 @@ steps:
3030
#################
3131
# Lint
3232
#################
33-
- label: "🧹 Lint"
33+
- label: "🧹 Lint (Rubocop)"
34+
key: rubocop
3435
command: |
3536
.buildkite/install-dependencies.sh
3637
@@ -45,6 +46,7 @@ steps:
4546
# Danger
4647
#################
4748
- label: "⛔️ Danger"
49+
key: danger
4850
command: |
4951
.buildkite/install-dependencies.sh
5052
@@ -61,6 +63,10 @@ steps:
6163
- label: ":rubygems: Publish to RubyGems"
6264
key: "gem-push"
6365
if: build.tag != null
66+
depends_on:
67+
- test
68+
- rubocop
69+
- danger
6470
# Note: We intentionally call a separate `.sh` script here (as opposed to having all the
6571
# commands written inline) to avoid leaking a key used in the process in clear in the
6672
# BUILDKITE_COMMAND environment variable.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _None_
1818

1919
### Internal Changes
2020

21-
_None_
21+
* Ensure that the `gem push` step only runs on CI if lint, test and danger steps passed before it. [#325]
2222

2323
## 2.3.0
2424

0 commit comments

Comments
 (0)