Skip to content

Commit

Permalink
Added Ruby 3.2 to the build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
kpumuk committed Oct 5, 2023
1 parent 6d4bb81 commit f3f19af
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 6 deletions.
86 changes: 81 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ jobs:
environment:
BUNDLE_GEMFILE: gemfiles/rails_7.0.gemfile
ENABLE_CODE_COVERAGE: 1
NO_STEEP: 0
NO_STEEP: 1
working_directory: ~/meta-tags/ruby31-rails-70
steps: *shared_build_steps

Expand All @@ -289,18 +289,74 @@ jobs:
working_directory: ~/meta-tags/ruby31-rails-71
steps: *shared_build_steps

build-ruby32-rails-60:
parameters:
is_main_build:
type: boolean
default: false
docker:
- image: cimg/ruby:3.2
environment:
BUNDLE_GEMFILE: gemfiles/rails_6.0.gemfile
ENABLE_CODE_COVERAGE: 1
NO_STEEP: 1
working_directory: ~/meta-tags/ruby32-rails-60
steps: *shared_build_steps

build-ruby32-rails-61:
parameters:
is_main_build:
type: boolean
default: false
docker:
- image: cimg/ruby:3.2
environment:
BUNDLE_GEMFILE: gemfiles/rails_6.1.gemfile
ENABLE_CODE_COVERAGE: 1
NO_STEEP: 1
working_directory: ~/meta-tags/ruby32-rails-61
steps: *shared_build_steps

build-ruby32-rails-70:
parameters:
is_main_build:
type: boolean
default: false
docker:
- image: cimg/ruby:3.2
environment:
BUNDLE_GEMFILE: gemfiles/rails_7.0.gemfile
ENABLE_CODE_COVERAGE: 1
NO_STEEP: 1
working_directory: ~/meta-tags/ruby32-rails-70
steps: *shared_build_steps

build-ruby32-rails-71:
parameters:
is_main_build:
type: boolean
default: false
docker:
- image: cimg/ruby:3.2
environment:
BUNDLE_GEMFILE: gemfiles/rails_7.1.gemfile
ENABLE_CODE_COVERAGE: 1
NO_STEEP: 0
working_directory: ~/meta-tags/ruby32-rails-71
steps: *shared_build_steps


upload-coverage:
docker:
- image: cimg/ruby:3.1
- image: cimg/ruby:3.2
steps:
- attach_workspace:
at: /tmp/workspace

- run:
name: Uploading Code Coverage
command: |
cd /tmp/workspace/ruby31-rails-70
cd /tmp/workspace/ruby32-rails-71
./cc-test-reporter upload-coverage --input coverage/codeclimate.coverage.json || true
tests:
docker:
Expand Down Expand Up @@ -352,15 +408,27 @@ workflows:
is_main_build: false

- build-ruby31-rails-70:
is_main_build: true
is_main_build: false

- build-ruby31-rails-71:
is_main_build: false

- build-ruby32-rails-60:
is_main_build: false

- build-ruby32-rails-61:
is_main_build: false

- build-ruby32-rails-70:
is_main_build: false

- build-ruby32-rails-71:
is_main_build: true


- upload-coverage:
requires:
- build-ruby31-rails-70
- build-ruby32-rails-71

- tests:
requires:
Expand Down Expand Up @@ -393,3 +461,11 @@ workflows:

- build-ruby31-rails-71

- build-ruby32-rails-60

- build-ruby32-rails-61

- build-ruby32-rails-70

- build-ruby32-rails-71

8 changes: 7 additions & 1 deletion .circleci/config.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@
# 3.1
%w[3.1 6.0],
%w[3.1 6.1],
["3.1", "7.0", true],
%w[3.1 7.0],
%w[3.1 7.1],

# 3.2
%w[3.2 6.0],
%w[3.2 6.1],
%w[3.2 7.0],
["3.2", "7.1", true],
]

main_build = builds.find { |_, _, is_main_build| is_main_build }
Expand Down

0 comments on commit f3f19af

Please sign in to comment.