-
Notifications
You must be signed in to change notification settings - Fork 255
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 CI failures by running Ruby <= 2.2 on older Ubuntu image #516
Conversation
Old versions of Ruby (<= 2.2) no longer work on the latest Ubuntu image. Fix by using `ubuntu-20.04` instead of `ubuntu-latest` for old Rubies. Also create a roll-up job called `test-all` that collects the results of `test` and `test-legacy` jobs into a single check that we can use for the branch protection rule.
ruby: [ "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "head" ] | ||
ruby: ["2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "head"] |
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.
🗒️ "2.0", "2.1", "2.2"
have been moved to the new test-legacy
job.
@@ -19,6 +19,33 @@ jobs: | |||
- name: Run tests | |||
run: bundle exec rake test:units | |||
|
|||
test-legacy: | |||
runs-on: ubuntu-20.04 |
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.
🗒️ Use the older Ubuntu runner that is compatible with Ruby "2.0", "2.1", "2.2"
- name: Run tests | ||
run: bundle exec rake test:units | ||
|
||
test-all: |
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 aggregates all of the test*
the matrix runs into a single check. That way the branch protection rule becomes much simpler.
@@ -58,3 +99,15 @@ jobs: | |||
|
|||
- name: Run functional tests | |||
run: bundle exec rake test:functional | |||
|
|||
functional-all: |
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.
🗒️ Likewise this aggregates all the functional*
matrix runs into one check.
Old versions of Ruby (<= 2.2) no longer work on the latest Ubuntu image.
Fix by using
ubuntu-20.04
instead ofubuntu-latest
for old Rubies.Also create roll-ups job called
test-all
andfunctional-all
that collects the results of all the test and functional job runs for various Ruby versions into two checks that we can use for the branch protection rule.