Repository navigation
ci(artifact): add build artifacts - #14171
Conversation
|
TypeScript: it looks like It's a bit hacky but we could do |
Yes, the build script is not a huge thing since not letting it run is probably going to cost more than it will benefit in CI but the full rebuild is what we should avoid.
But that's using npm. I quickly searched for a no-save alternative for yarn v1 but didn't find anything yet. I'll still change it for now but preferably I want to remain using yarn here |
|
I still want to change the TypeScript install back to yarn in a future PR but this --no-save does not impact the other dependencies so it's fine for now. I will improve that in a future PR. For now I'm happy that this reduces every check by about 2 minutes |
|
Using npm for that specific command shouldn't have a negative impact as npm seems to only be touching the typescript package (and eventual dependencies) the same way yarn would have. And in both scenarios we would have been bypassing the lockfile |
|
We should consider doing the same for pg-native |
Yes indeed. That's why it's fine for now. I just like the consistency for using yarn everywhere |
I completely missed that. Will add that. Thanks! |
|
Looks like while doing it for TypeScript worked fine, doing it for pg-native doesn't. npm doesn't update the module tree correctly :( |
|
Only on Node 12 though so I'll just return to |
13d5be8 to
6641967
Compare
|
Really appreciating the performance boost 🥰 |
68c1636 to
c084264
Compare
|
Okay, I think it's done now. Next steps for further performance boost is related to DB2 but that's for a later moment |
|
🎉 This PR is included in version 7.0.0-alpha.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* ci(artifact): add build artifacts * ci(artifact): use tar archiving * ci(artifact): add Node 12 build * ci(test): combine unit test * ci(types): ensure that test-typings pass before release * build: fix typo in test-unit-all * ci(test): add Node 12 unit test * ci(artifact): combine install-and-build steps * ci: fix typo * ci(mysql/mariadb): specify patch version for MySQL and MariaDB * ci(typescript): move to npm i --no-save * ci(mariadb): fix patch version of MariaDB 10.5 * ci(pg-native): improve speed pg-native install * ci(pg-native): fix install on Node 12 * ci(artifact): retain artifacts for 1 day * ci(pg-native): rebuild sequelize after installing pg-native * ci(setup-node): add caching * ci: implement requested changes
Pull Request Checklist
Please make sure to review and check all of these items:
yarn testoryarn test-DIALECTpass with this change (including linting)?Description Of Change
This PR speeds up CI by about a few minutes in total through introducing build artifacts that are made once and used for all other jobs, minimizing duplication throughout the workflow.
It also uses
npm install --no-save --no-auditfor the other TypeScript versions to be installed quicker. This is also done for pg-native on Node 16 but due to issues with dependencies not for pg-native on Node 12.It also enables caching for setup-node step.
Finally, it pins the versions of MySQL and MariaDB to the patch releases. This will prompt updates by renovate so we will not have to check for updates manually.