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

Test installer commands (retry) #197

Merged
merged 6 commits into from
Jul 31, 2024
Merged

Conversation

jonathanhefner
Copy link
Member

This is a retry of #182. I have added a gemfile for Rails 6.1, and refreshed all gemfile lock files.

@dhh I did not track down the root cause of the messages in #196 (comment), but they only appear when testing with Rails 6.0. Currently, main branch tests with Rail 6.1 by default. In #182, I had changed that to Rails 6.0 to match the gemspec, but I have changed it back to Rails 6.1 in this PR.

In summary, after this PR is merged: the gemspec will require Rails >= 6.0, bundle exec rake will test with Rails 6.1, and CI will test with Rails >= 6.1.

This adds testing infrastructure to test against multiple versions of
Rails, including Rails `main` branch.
This adds test coverage for the shared behavior of the installer
commands.  The commands are tested against a freshly generated Rails app
using the version of Rails that is currently loaded.  Thus the
installers can be tested with different versions of Rails in CI.
This adds test coverage for specific behavior of the
`javascript:install:bun` command.
This adds test coverage for specific behavior of the
`javascript:install:esbuild` command.
This adds test coverage for specific behavior of the
`javascript:install:rollup` command.
This adds test coverage for specific behavior of the
`javascript:install:webpack` command.
@dhh dhh merged commit 2413e21 into rails:main Jul 31, 2024
12 checks passed
@dhh
Copy link
Member

dhh commented Jul 31, 2024

That worked!

@dhh
Copy link
Member

dhh commented Jul 31, 2024

Could you add a bin/test binstub as well to trigger this? And maybe we should also get some github hooks setup to run automatically on PRs.

@jonathanhefner
Copy link
Member Author

@dhh

Could you add a bin/test binstub as well to trigger this?

Do you mean a binstub to run bundle exec rake with just the default Gemfile, or once for each gemfile? I've submitted #198 to do the latter, but I can strip out the loop if you prefer.

And maybe we should also get some github hooks setup to run automatically on PRs.

The GitHub workflow from this PR will trigger on PRs:

on: [push, pull_request]

Or did you mean something else?

@dhh
Copy link
Member

dhh commented Aug 1, 2024

Was thinking that bin/test should run everything.

Ahh, hadn't noticed that on the ci.yml. All good then.

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.

2 participants