Repository navigation
Renovate: detect the coverage job's PHP version and maintain composer.lock - #41
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #41 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 5 5
===========================================
Files 1 1
Lines 15 15
===========================================
Hits 15 15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Makes Renovate pick up dependencies it currently misses.
Changes
renovate.jsoncustomManagers:githubActionsVersionslockFileMaintenance(periodiccomposer.lockrefresh).github/workflows/test.ymlcoverage job: the PHP version moved from a literalphp-version: '8.5'into a job-levelPHP_VERSIONenv var annotated with# renovate: datasource=docker depName=php.Why an env var and not just a comment above
php-version:The
githubActionsVersionspreset only matches keys named*_VERSION:. A comment placed abovephp-version: '8.5'would never be detected. With the env var, the setup-php input and the composer cache key (…-php-8.5-coverage-…, which used to be a hard-coded copy) both read${{ env.PHP_VERSION }}, so a Renovate bump changes all of them together. Nothing needs to be bumped by hand. The test matrix list (php-versions) is unchanged.What Renovate now detects
php(docker datasource)8.5in the coverage job'sPHP_VERSIONcomposer.lockValidation
renovate-config-validator --strict renovate.json: OKrenovate --platform=local --dry-run=extract: theregexmanager extracts{depName: php, datasource: docker, currentValue: 8.5}from.github/workflows/test.yml🤖 Generated with Claude Code