Repository navigation
Speed up the Tests workflow by caching Composer downloads - #213
Open
shanesmithdev wants to merge 1 commit into
Open
shanesmithdev wants to merge 1 commit into
shanesmithdev wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every Tests run downloaded all of Composer's dependencies from scratch. This keeps Composer's download cache between runs, keyed on composer.lock, so a run only downloads what changed since the last one. If composer.lock changes, the run starts from the most recent cache and saves a new one.
Pull requests from forks can restore caches saved on main, and runs on main install the licensed plugins. So the workflow removes those three plugins from the cache before saving it, and the cache never holds licensed code. Runs with credentials still download the three plugins every time.
A new push to a pull request now cancels the run still going for the old one, so superseded commits stop using runner time. Each commit on main still gets its own run, so every one is tested.
While here, actions/checkout goes from v4 to v7.
Screenshots