Upgrade to Ruby 3.2 (#22928)

Co-authored-by: Matthew Ford <matt@bitzesty.com>
This commit is contained in:
Aaron Patterson
2023-02-14 23:30:27 -08:00
committed by GitHub
parent d15a9df6fe
commit fb8503e861
7 changed files with 39 additions and 25 deletions

View File

@ -46,7 +46,7 @@ commands:
name: Set bundler settings
- ruby/install-deps:
bundler-version: '2.3.26'
key: ruby<< parameters.ruby-version >>-gems-v1
key: ruby<< parameters.ruby-version >>-gems-v2
wait-db:
steps:
- run:
@ -56,14 +56,14 @@ commands:
jobs:
build:
docker:
- image: cimg/ruby:3.0-node
- image: cimg/ruby:3.2-node
environment:
RAILS_ENV: test
steps:
- checkout
- install-system-dependencies
- install-ruby-dependencies:
ruby-version: '3.0'
ruby-version: '3.2'
- node/install-packages:
cache-version: v1
pkg-manager: yarn
@ -95,7 +95,7 @@ jobs:
- checkout
- install-system-dependencies
- run:
command: sudo apt-get install -y ffmpeg imagemagick libpam-dev
command: sudo apt-get install -y ffmpeg imagemagick libmagickcore-dev libmagickwand-dev libjpeg-dev libpng-dev libtiff-dev libwebp-dev libpam-dev
name: Install additional system dependencies
- run:
command: bundle config with 'pam_authentication'
@ -113,12 +113,12 @@ jobs:
test-migrations:
executor:
name: default
ruby-version: '3.0'
ruby-version: '3.2'
steps:
- checkout
- install-system-dependencies
- install-ruby-dependencies:
ruby-version: '3.0'
ruby-version: '3.2'
- wait-db
- run:
command: ./bin/rails db:create
@ -151,12 +151,12 @@ jobs:
test-two-step-migrations:
executor:
name: default
ruby-version: '3.0'
ruby-version: '3.2'
steps:
- checkout
- install-system-dependencies
- install-ruby-dependencies:
ruby-version: '3.0'
ruby-version: '3.2'
- wait-db
- run:
command: ./bin/rails db:create
@ -206,6 +206,8 @@ workflows:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
name: test-ruby<< matrix.ruby-version >>
requires:
- build