Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Dummy app to serve ActionText assets
Without adding the [`sassc-rails` gem][sassc-rails] as a dependency, attempts include the `trix.js`-provided stylesheets into the Asset Pipeline [result in an error][sassc-rails-error]. Additionally, this commit extends the `.github/workflows/tests.yml` to [include NodeJS support][setup-node], and to install the Dummy application's Yarn dependencies during the setup phase (through the [`yarn:install` Rails task][yarn:install], and to [cache the installed Yarn packages][cache]. Finally, declare `test/dummy/config/initializers/assets.rb` to [configure the Asset Pipeline's search path][asset-initializer] to include the _project root's_ `node_modules/` directory. [sassc-rails]: https://github.com/sass/sassc-rails [sassc-rails-error]: sass/sassc-rails#114 [setup-node]: https://github.com/actions/setup-node/tree/v1#usage [yarn:install]: https://github.com/rails/webpacker/blob/v5.0.1/lib/tasks/webpacker/yarn_install.rake [cache]: https://github.com/actions/cache/blob/v1/examples.md#node---yarn [asset-initializer]: https://guides.rubyonrails.org/asset_pipeline.html#search-paths
- Loading branch information