Skip to content

Renovate: detect the coverage job's PHP version and maintain composer.lock - #41

Merged
mathroc merged 1 commit into
mainfrom
renovate-detect-missed-deps
Dec 4, 2026
Merged

mathroc merged 1 commit into
mainfrom
renovate-detect-missed-deps

Conversation

@mathroc

@mathroc mathroc commented Dec 4, 2026

Copy link
Copy Markdown
Member

Makes Renovate pick up dependencies it currently misses.

Changes

  • renovate.json
    • extends customManagers:githubActionsVersions
    • enables lockFileMaintenance (periodic composer.lock refresh)
  • .github/workflows/test.yml coverage job: the PHP version moved from a literal php-version: '8.5' into a job-level PHP_VERSION env var annotated with # renovate: datasource=docker depName=php.

Why an env var and not just a comment above php-version:

The githubActionsVersions preset only matches keys named *_VERSION:. A comment placed above php-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.5 in the coverage job's PHP_VERSION
  • lock file maintenance PRs for composer.lock

Validation

  • renovate-config-validator --strict renovate.json: OK
  • renovate --platform=local --dry-run=extract: the regex manager extracts {depName: php, datasource: docker, currentValue: 8.5} from .github/workflows/test.yml

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9d93489) to head (5c06a84).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mathroc
mathroc merged commit ea167f5 into main Dec 4, 2026
8 checks passed
@mathroc
mathroc deleted the renovate-detect-missed-deps branch December 4, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant