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

Fix Ruby version 3.0 for Specs tests #12737

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andraskadar
Copy link

In order to work around a bug in GH Actions, it is required to wrap the 3.0 Ruby version declaration in quotes, otherwise it is interpreted as Ruby version 3, without major or minor version restrictions.

See

Example workflow run: https://github.com/CocoaPods/CocoaPods/actions/runs/11768823762/job/32779090259

  • job name is falsely SPECS / ubuntu-20.04 / Ruby 3 instead of SPECS / ubuntu-20.04 / Ruby 3.0
  • Set up Ruby step downloads ruby-3.3.6-ubuntu-20.04.tar.gz

In order to work around a bug in GH Actions, it is required to wrap the 3.0 Ruby version declaration in quotes, otherwise it is interpreted as Ruby version 3, without major or minor version restrictions.

See
- official issue: actions/runner#849
- ruby/setup-ruby setup instructions: https://github.com/ruby/setup-ruby/tree/v1/?tab=readme-ov-file#matrix-of-ruby-versions
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