-
Notifications
You must be signed in to change notification settings - Fork 982
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
Add cache action to lint workflow #4517
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was in the root and was likely added by accident by running npm i
in the root.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome and lgtm!
Quick Q: How does it know when to hit the cache vs. when to not? Is it based off what packages get installed?
Yeah that's correct, the line |
What are you changing in this pull request and why?
Adds caching to
lint
workflow to attempt to reduce bandwidth usage in Vercel. This also speeds up the workflow checks for Docs PRs as it no longer needs to wait to install all packages on each run.Initial run where node mods was cached (Under
Post Cache Node Modules
)https://github.com/dbt-labs/docs.getdbt.com/actions/runs/6936641309/job/18869155154
2nd run where
lint
workflow detects and uses cache (UnderCache Node Modules
)https://github.com/dbt-labs/docs.getdbt.com/actions/runs/6936659386/job/18869211562
Ensure site is not nuked:
https://docs-getdbt-com-git-cache-node-mods-ci-dbt-labs.vercel.app/