cssbundling-rails icon indicating copy to clipboard operation
cssbundling-rails copied to clipboard

Test installer commands

Open jonathanhefner opened this issue 1 year ago • 1 comments

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.

jonathanhefner avatar Jan 13 '24 23:01 jonathanhefner

Let's just test against Rails 7+.

dhh avatar Jan 21 '24 19:01 dhh