Skip to content

Commit 35ad9f3

Browse files
committed
Update buildkite pipeline to run tests using Ruby 2.7.4 and 3.2.2
1 parent ca9427f commit 35ad9f3

File tree

1 file changed

+31
-19
lines changed

1 file changed

+31
-19
lines changed

.buildkite/pipeline.yml

Lines changed: 31 additions & 19 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
env: &xcode_image
4-
IMAGE_ID: xcode-14.1
4+
IMAGE_ID: xcode-14.3.1
55
plugins:
66
- &docker_plugin
77
docker#v3.8.0:
@@ -21,27 +21,39 @@ steps:
2121
#################
2222
# Build and Test
2323
#################
24-
- label: "🧪 Build and Test"
24+
- group: 🧪 Build and Test"
2525
key: test
26-
command: |
27-
# We only need this for tasks running on a Mac
28-
brew install pkg-config git-lfs libxml2 imagemagick@6
26+
steps:
27+
- label: "🧪 Build and Test using Ruby {{ matrix.ruby }}"
28+
command: |
29+
echo "--- :ruby: Using ruby {{ matrix.ruby }}"
30+
export RBENV_VERSION={{ matrix.ruby }}
31+
ruby --version
2932
30-
echo "--- :git: Setting up git-lfs"
31-
git-lfs install
33+
echo "--- :package: Installing homebrew packages"
34+
# We only need this for tasks running on a Mac
35+
brew install pkg-config git-lfs libxml2 imagemagick@6
3236
33-
echo "--- :rubygems: Setting up Gems"
34-
# https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16
35-
gem install bundler
36-
install_gems
37+
echo "--- :git: Setting up git-lfs"
38+
git-lfs install
3739
38-
echo "--- :rspec: Run Rspec"
39-
bundle exec rspec --profile 10 --format progress
40-
env: *xcode_image
41-
plugins:
42-
- automattic/a8c-ci-toolkit#2.15.0
43-
agents:
44-
queue: "mac"
40+
echo "--- :rubygems: Setting up Gems"
41+
# https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16
42+
gem install bundler
43+
install_gems
44+
45+
echo "--- :rspec: Run Rspec"
46+
bundle exec rspec --profile 10 --format progress
47+
env: *xcode_image
48+
plugins:
49+
- automattic/a8c-ci-toolkit#2.15.0
50+
agents:
51+
queue: "mac"
52+
matrix:
53+
setup:
54+
ruby:
55+
- 2.7.4
56+
- 3.2.2
4557

4658
#################
4759
# Lint
@@ -79,7 +91,7 @@ steps:
7991
- test
8092
- rubocop
8193
- danger
82-
# Note: We intentionally call a separate `.sh` script here (as opposed to having all the
94+
# Note: We intentionally call a separate `.sh` script here (as opposed to having all the
8395
# commands written inline) to avoid leaking a key used in the process in clear in the
8496
# BUILDKITE_COMMAND environment variable.
8597
command: .buildkite/gem-push.sh

0 commit comments

Comments
 (0)