Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 42459f6

Browse files
authored
Run CI against a Ruby matrix (#1117)
1 parent 8d9e435 commit 42459f6

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

Diff for: .circleci/config.yml

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
version: 2
1+
version: 2.1
2+
3+
orbs:
4+
# orbs are basically bundles of pre-written build scripts that work for common cases
5+
# https://github.com/CircleCI-Public/ruby-orb
6+
ruby: circleci/[email protected]
7+
28
jobs:
3-
build:
9+
test:
10+
parameters:
11+
ruby-version:
12+
type: string
413
docker:
5-
- image: cimg/ruby:2.7.7-node
14+
- image: cimg/ruby:<< parameters.ruby-version >>-node
615
steps:
716
- checkout
817
- restore_cache:
@@ -22,3 +31,12 @@ jobs:
2231
- run:
2332
name: Parse SassDoc comments
2433
command: npm run sassdoc
34+
workflows:
35+
build_and_test:
36+
jobs:
37+
- test:
38+
matrix:
39+
parameters:
40+
# https://github.com/CircleCI-Public/cimg-ruby
41+
# only supports the last three ruby versions
42+
ruby-version: ["2.7", "3.0", "3.1", "3.2"]

0 commit comments

Comments
 (0)