-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Speed up Psalm tests #49001
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
Speed up Psalm tests #49001
Conversation
Might not be able to actually see this working until #49000 is merged... |
@danepowell #49000 has been merged, you may want to rebase. :) |
This sped up Psalm tests from 40 minutes to 3 minutes! 😂 |
d28c6c6
to
3a89d8d
Compare
We should merge this on 5.4, isn't it? |
cc8e6cf
to
89be707
Compare
Thank you @danepowell. |
with: | ||
php-version: ${{ env.php-version }} | ||
extensions: ${{ env.extensions }} | ||
key: cache-v1 # can be any string, change to clear the extension cache. |
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.
on 6.3 the list of extensions is not the same as on 6.2/5.4
shouldn't we vary this by php-version + extensions?
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.
I haven't used GitHub Actions caching much, but I think it will attempt to restore the cache from the current branch before falling back to the default branch. So there shouldn't be any harm in reusing a cache key across branches.
The setupphp maintainer recommends caching the couchbase extension using the cache-extensions action. This should speed up Psalm runs from 14 minutes to 2 minutes!