Fix runner for Ruby setup on GitHub Actions #120
Merged
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.
Fix diagnose output matcher
I got this error when performing this spec. Match a String instead so the error goes away.
Ignore DidYouMean output in the Ruby runner
It would fail on this line of output being present, so ignore it.
Explicitly run bundle install for Ruby runner
Not sure how it worked before, but explicitly install the runner's gems from the Gemfile, which includes the Ruby gem it's testing. I ran into errors of the gem not being found.
Fix bundler env being copied to Ruby runner
Fix issues with the wrong bundle of gems being used as context for the runner. This failed to find the Ruby gem as it was using this project's test suite Gemfile instead.
Wrap commands with
Bundler.with_unbundled_env
so it removes any Bundler context from the environment. It also clears some other env vars, so explicitly set them again in the baserun_env
method.