[CI] test.yml - use bundle exec, use setup-ruby bundler-cache, fixes Windows issue
#758
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I saw this comment, which referred to failing tests on Windows for Ruby 3.0 thru 3.2.
I'm not exactly sure what the issue is, as it involves setup-ruby updating Bundler without updating RubyGems, which is done to some Windows Rubies due to a lack of a bash
bin/bundlefile.Also, at present, two items:
CI is using Bundler with a Gemfile, but it's not using
bundle exec. This works, as Bundler defaults to installing gems such that one doesn't needbundle exec.Because of the above, every CI job is downloading and installing the gems, although
setup-rubycan cache them.This PR removes the
bundle installstep, and usessetup-ruby'sbundler-cacheoption. It also runs steps withbundle exec.All jobs passed in my fork...