rails / cssbundling-rails

Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js.
MIT License
563 stars 83 forks source link

Test installer commands #149

Open jonathanhefner opened 5 months ago

jonathanhefner commented 5 months ago

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.

dhh commented 5 months ago

Let's just test against Rails 7+.