cssbundling-rails
cssbundling-rails copied to clipboard
Test installer commands
This PR looks larger than it is because this project currently has no testing infrastructure. The majority of LOC in this PR are from Gemfile
and Gemfile.lock
files. I have split the PR into multiple commits to further clarify.
This adds test coverage for the css:install:bootstrap
, css:install:bulma
, css:install:postcss
, css:install:sass
, and css:install:tailwind
commands. The commands are tested against a freshly generated Rails app using the version of Rails that is currently loaded. Thus the installer can be tested with different versions of Rails in CI.
Infrastructure has been added to run tests against Rails 7.0, 7.1, and main
branch.
This PR takes a different approach than https://github.com/rails/dartsass-rails/pull/49 — instead of separate appraisals / gemfiles for Sprockets and Propshaft, this PR has tests that target each.
Let's just test against Rails 7+.