Repository navigation
Stop tracking Phive PHARs and cache them in CI - #1168
Merged
Merged
Conversation
Downloaded Phive PHARs (phpunit, php-cs-fixer, composer-normalize) and generated tool symlinks were previously committed, adding several megabytes of binary blobs to git history on every tool update. Untrack and ignore those PHARs and symlinks while keeping tools/phive and .phive/phars.xml tracked, narrow .gitattributes binary marking to /tools/phive, install and cache the PHARs in CI jobs that invoke them, and invoke PHPStan and Rector directly from their Composer vendor directories in CI.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## 8.x #1168 +/- ##
=========================================
Coverage 89.16% 89.16%
Complexity 1520 1520
=========================================
Files 157 157
Lines 4256 4256
=========================================
Hits 3795 3795
Misses 461 461
*This pull request uses carry forward flags. Click here to find out more. |
Pass GITHUB_AUTH_TOKEN to Phive installation steps so GitHub API release lookups do not hit unauthenticated rate limits on shared runners.
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.
Downloaded Phive PHARs (
phpunit,php-cs-fixer,composer-normalize) and generated tool symlinks were previously committed, adding several megabytes of binary blobs to git history on every tool update.This stops tracking and ignores those PHARs and symlinks while keeping
tools/phiveand.phive/phars.xmltracked, narrows.gitattributesbinary marking to/tools/phive, installs and caches the PHARs in CI jobs that invoke them (lint,tests,emulator-tests,code-coverage, andsecure-tests), and invokes PHPStan and Rector directly from their Composer vendor directories in CI.