This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run CI against a Ruby matrix (#1117)
- Loading branch information
1 parent
8d9e435
commit 42459f6
Showing
1 changed file
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | ||
|
||
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: | ||
|
@@ -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"] |