-
Notifications
You must be signed in to change notification settings - Fork 733
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
Add ruby 3.2 to CI #1759
Add ruby 3.2 to CI #1759
Conversation
183ac08
to
55f15ee
Compare
Sorry if you think I changed to many things in one MR. It is less work on one MR when it soo related. |
} | ||
end | ||
|
||
def test_ruby_2_7_eol | ||
assert_warning check_name: "EOLRuby", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break again on 2023-03-31 (or maybe sooner).
Can you wrap it in code like this? (This is what's done here)
Date.stub :today, Date.parse('2023-02-10') do
assert_warning ...
end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is updated. I wraped the scann method
It is useful to see which exact version it is running since when we specify cimg/ruby:3.2 we don't know if we will get 3.2.0 or 3.2.1. We will always get the most recent but now it is printed.
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) https://app.circleci.com/pipelines/github/presidentbeef/brakeman/953/workflows/5e965ee8-4b14-4e72-a0b6-c3793242093f/jobs/6340
Based on that the newer ruby image for circleci/ruby is 3.0.3 and cimg/ruby has 3.2.1. I thinkg cimg/ruby is better overall. It is also procuced bu CircleCI. CircleCI has a repo https://github.com/CircleCI-Public/cimg-overview where they document so of the build status and here it states that `cimg/ruby` replaces `circleci/ruby`. Also https://github.com/CircleCI-Public/cimg-ruby states "This image is designed to supercede the legacy CircleCI Ruby image, circleci/ruby."
Thanks! |
Something fails on when I use ruby 3.2 in production. I think this should work but it is allways good to test have it in ci too.