-
Notifications
You must be signed in to change notification settings - Fork 147
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
Setup testing similar to dartsass-rails #187
Conversation
Interesting that 5878a64 test for checking |
@zzak thanks - you OK with pushing some fixups directly? A bit unfamiliar with Appraisals, but believe we need to regenerate? bundle exec appraisal install Also - any reason for having sqlite (assuming initially used w/ |
@ksylvest Yeah, feel free to push whatever commits and we can squash when we're ready. For the other installers (node, bun, esbuild, webpack), we can split them out to separate files like We also need to do the same for cssbundling-rails, if you want to wait or can start on that too. Up to you! Also, @flavorjones has done an excellent job with https://github.com/rails/tailwindcss-rails so there might be ideas we can pull in from there too. Thank you!! |
2124cec
to
8347367
Compare
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
8347367
to
c4d6c2b
Compare
Ensures: 1. The esbuild NPM package is installed as a dependency 2. The esbuild command is used as a build script 3. The Procfile.dev is copied / modified
Ensures: 1. The rollup NPM packages are installed as dependencies 2. The rollup command is used as a build script 3. The Procfile.dev is copied / modified
Ensures: 1. The bun config file is copied 2. The bun command is used as a build script 3. The Procfile.dev is copied / modified
c4d6c2b
to
71d6911
Compare
Forgot to confirm... This section of CI is an artifact of the prior life as a dartsass-rails CI.yml file right? |
@ksylvest Thanks! There seem to be a few failures, and we probably want to make sure rails+ruby main don't fail the build. I will look into those and clean things up. |
Yes, that is a dart sass specific problem, I believe. |
Are you just running |
I was just running this but passes locally for me too:
|
I might've introduced a test dependency ordering issue 🤦. I think this is missing in the webpack spec: I'm a bit less familiar with mini test, but this should fixup: |
Perhaps node is missing in CI...? |
Seeing these errors now about missing rollup and esbuild:
|
Here is the full error for the Ruby 3.3 rails_7_1_sprockets webpack failure:
|
Thought the cache might have something to do with it, no luck. Will try again in the morning, if I can't figure it out then I will start a new branch without using Appraisal to see if that helps. If it works I will rebase this branch once everything is 🟢 |
Sorry for the dumb question, but are y'all aware of this PR which was opened a few days ago #182 ? |
LOL glad that I decided to sleep on that, and sorry I missed Jonathan's PR. 🙇 |
This code is based on rails/dartsass-rails#49, see also hotwired/turbo-rails#553 and hotwired/stimululs-rails#136.
/cc @ksylvest so we can collaborate and filling out more test cases (I've also sent you an invite to my fork so you can push to this branch).