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

Revisit GitHub workflows #2301

Merged
merged 18 commits into from
Jan 9, 2023
Merged

Conversation

ericproulx
Copy link
Contributor

@ericproulx ericproulx commented Jan 1, 2023

This PR updates current GH workflows.

Overall changes:

Specific changes

  • rack_2_2 has been deleted in favor to rack_2_0 to fit like rack_1_0
  • multi_json and multi_xml are tested once with ruby 2.7 (no major updates for these gems for a while now)
  • rack_1_0 is tested only under 2.7 (2 major version since, I think people move at least to 2.0 since)
  • rails_5_2 is tested only under 2.6
  • rails_7_0 has been updated to fit 7.0.0 versions
  • rack_3_0 has been updated to fit 3.0.0 versions

Refactor ruby-matrix on test and edge
Add rubygems: latest
Add 3.2
@ericproulx ericproulx marked this pull request as draft January 1, 2023 20:18
@ericproulx ericproulx changed the title Reviste GitHub workflows Revisit GitHub workflows Jan 1, 2023
@ericproulx ericproulx marked this pull request as ready for review January 1, 2023 22:57
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering whether it's really useful to run all the permutations on 5 versions of Ruby. This is 62 builds.

runs-on: ubuntu-20.04
os: [ubuntu-latest]
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2']
gemfile: [multi_json, multi_xml, rack_1_0, rack_2_0, rack_2_2, rails_5_2, rails_6_0, rails_6_1, rails_7_0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This becomes a massive matrix and the list of exclude will grow.

We could make something like https://github.com/slack-ruby/slack-ruby-client/blob/master/.github/workflows/test.yml#L13 potentially to make it easier to grok, WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reduced it and add some specific inclusion.

Lock rack_3_0 to not include 3.1
Remove rack_2_2 in favor of 2_0 to test
Rename rack3 to rack_3_0
Testing workflow include/exclude
testing gemfile rack_2_0, rails_6_0, rails_6_1, rails_7_0
include 2.6 for rails_5_2
include 2.7 for rack_1_0, multi_json, multi_xml
Remove matrix os in edge
Add rubygems: latest to rubocop
@dblock
Copy link
Member

dblock commented Jan 9, 2023

It's a step in the right direction thanks!

@dblock dblock merged commit cdeaa13 into ruby-grape:master Jan 9, 2023
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.

rails_edge on 2.7 needs newer RubyGems
2 participants