do a production yarn install in the build step#5391
Conversation
|
Also tentatively considered in #4696. Looking at the dependencies split, it seems we should be fine, though moving forward we'll need to be careful to always include build dependencies as |
|
I wasn't aware of Lines 58 to 59 in 905e257 |
On both of those, we may be able to do the same I am pushing a test of it in 864fc2cf6791dab525cdb7c87bc17bc762536dea If it does work we can drop the |
|
We'll need development dependencies for some of the CircleCI jobs like linting / JavaScript tests. |
864fc2c to
c974bc4
Compare
|
Oops, yep, dropping the |
c974bc4 to
df099bd
Compare
|
I guess my ideal would be where the "build" job specifically could install only production dependencies, while "lints" and "javascript_build" continue to install all dependencies, so that "build" acts most similar to a runtime environment. Implementing this seems challenging though 😬 |
Required some splitting up of the install parts and a little more verbosity, but it's not TOO bad in e9fe6e84e? |
f027afb to
e9fe6e8
Compare
|
Looks like the build got stuck? Also, any thoughts whether |
e9fe6e8 to
ab78c2b
Compare
I went back and forth on it a bit, but the effort to do it is relatively low, so we may as well do it while we're here even if it's not a bottleneck right now. Added a separate cache for the |
| command: | | ||
| yarn test | ||
|
|
||
| javascript_build: |
There was a problem hiding this comment.
I like the name here as far as verifying that we can actually build assets, but it leaves me feeling a bit funny that we have the unprefixed "build" job as meaning something totally different, where it's more about running RSpec tests.
There was a problem hiding this comment.
Agreed, changed the build job to be named ruby_test
|
Hm, I just ran into a case where |
Ignores dev dependencies and ensures the lock file is not modified or out of sync
Deployed this change to my sandbox and the install and asset compilation still work as expected