Skip to content
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

Consistent Ruby version in GitHub workflows / rubocop + Fix amazonlinux build #1132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Ithanil
Copy link
Collaborator

@Ithanil Ithanil commented Dec 11, 2024

Consistent Ruby version in Github workflows / rubocop (including trivial adaptions).

Description

By working on GL3 I got remembered of the fact that the Ruby version is specified in more of the Github workflow files besides just the ci.yml, although the variable is not obviously used in any way in these files. Nevertheless, this PR makes the specified Ruby version consistent in these files. Also, the Ruby version target for Rubocop is adapted, including some trivial suggested changes.
The problem with the GitHub workflow files is also that there seems to be a lot of redundancy, but I'm not very familiar with the GitHub CI system since I'm generally using GitLab CI for test,build,push and thus won't touch that.

Another thing that apparently needs to be addressed is the whole amazonlinux build, which is currently failing due to Ruby being stuck on 3.0 there. I think the build needs to switch to a custom Ruby installation e.g. via rbenv and should soon be migrated from AL2 to AL2023 (for which I've read that support Ruby 3.3 is coming very soon or is already there).

EDIT: Now this PR also fixes the amazonlinux build, by using rbenv to install Ruby 3.3. The point of upgrading to AL2023 still stands. @paulseto , I have seen a PR from you regarding the amazonlinux build in the past. Would you be able and willing to work on this?

@Ithanil Ithanil changed the title Consistent ruby version in Github workflows / rubocop Consistent Ruby version in Github workflows / rubocop Dec 11, 2024
@Ithanil Ithanil force-pushed the consistent_rubyv branch 2 times, most recently from 71a1643 to 8f2cbce Compare December 11, 2024 14:34
@Ithanil Ithanil marked this pull request as draft December 11, 2024 15:03
@Ithanil Ithanil force-pushed the consistent_rubyv branch 6 times, most recently from 84ce796 to 2a06962 Compare December 11, 2024 16:17
@Ithanil Ithanil marked this pull request as ready for review December 11, 2024 16:25
@Ithanil Ithanil changed the title Consistent Ruby version in Github workflows / rubocop Consistent Ruby version in Github workflows / rubocop + Fix amazonlinux build Dec 11, 2024
@Ithanil Ithanil changed the title Consistent Ruby version in Github workflows / rubocop + Fix amazonlinux build Consistent Ruby version in GitHub workflows / rubocop + Fix amazonlinux build Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant