Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run against a Ruby matrix #1117

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 21 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
version: 2
version: 2.1

orbs:
# orbs are basically bundles of pre-written build scripts that work for common cases
# https://github.com/CircleCI-Public/ruby-orb
ruby: circleci/ruby@1.1

jobs:
build:
test:
parameters:
ruby-version:
type: string
docker:
- image: cimg/ruby:2.7.7-node
- image: cimg/ruby:<< parameters.ruby-version >>-node
steps:
- checkout
- restore_cache:
Expand All @@ -22,3 +31,12 @@ jobs:
- run:
name: Parse SassDoc comments
command: npm run sassdoc
workflows:
build_and_test:
jobs:
- test:
matrix:
parameters:
# https://github.com/CircleCI-Public/cimg-ruby
# only supports the last three ruby versions
ruby-version: ["2.7", "3.0", "3.1", "3.2"]