Skip to content

Commit

Permalink
RF-19513 Update CI config to test against modern Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
magni- committed Jul 6, 2022
1 parent 4bc1931 commit 9bcd8cf
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ version: 2.1

jobs:
test:
parameters:
ruby:
type: string
docker:
- image: circleci/ruby:2.5.3
- image: cimg/ruby:<< parameters.ruby >>
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
steps:
- checkout
- run:
name: Install Ruby gems
command: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
command: |
bundle config set --local path 'vendor/bundle'
bundle check || bundle install --jobs=4 --retry=3
- run:
name: Set up test output directory
command: sudo install -o circleci -d ~/rspec
Expand All @@ -26,7 +31,7 @@ jobs:
--out ~/rspec/rspec.xml
push_to_rubygems:
docker:
- image: circleci/ruby:2.5.3
- image: cimg/ruby:3.1.2
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -47,10 +52,21 @@ jobs:
gem push get_env-*.gem
workflows:
version: 2
test_and_deploy:
jobs:
- test:
matrix:
alias: old-ruby
parameters:
ruby: ["2.7.6", "3.0.4"]
filters:
tags:
only:
- /^v.*/
context:
- DockerHub
- test:
ruby: "3.1.2"
filters:
tags:
only:
Expand Down

0 comments on commit 9bcd8cf

Please sign in to comment.