Skip to content

Update setup-php to 2.40.0 - #303

Merged
oschwald merged 1 commit into
mainfrom
wstorey/eng-5610-geoip2-php-fix-macos-ci-by-updating-setup-php-to-2400
Oct 11, 2026
Merged

oschwald merged 1 commit into
mainfrom
wstorey/eng-5610-geoip2-php-fix-macos-ci-by-updating-setup-php-to-2400

Conversation

@horgh

@horgh horgh commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Pin shivammathur/setup-php to 2.40.0 in all workflows, to match the other MaxMind PHP repositories.

This repository has no macOS jobs, so its CI does not fail now. setup-php 2.37.2 fails on macOS because of Homebrew changes from 2026-10-07 to 2026-10-09. See maxmind/GeoIP2-php#351 for the cause.

ENG-5610

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the PHP setup used by automated analysis, linting, and test workflows.

Use the same setup-php version as the other MaxMind PHP repositories.
2.37.2 breaks on macOS because Homebrew changed from 2026-10-07 to
2026-10-09. This repository has no macOS jobs, so its CI is not
affected now.

ENG-5610

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 11, 2026 15:48
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2f317ce3-5cd2-40ad-bb7a-a5668d2d27d8

📥 Commits

Reviewing files that changed from the base of the PR and between 3351bde and 2f5c0d9.


📒 Files selected for processing (5)
  • .github/workflows/clang-analyzer.yml
  • .github/workflows/codeql-analysis.yml
  • .github/workflows/lint.yml
  • .github/workflows/test-bundled.yml
  • .github/workflows/test.yml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.



📝 Walkthrough

Walkthrough

Five GitHub Actions workflows update their shivammathur/setup-php pin from version 2.37.2 to 2.40.0. The bundled test workflow updates both of its PHP setup steps.

Changes

PHP CI workflow updates

Layer / File(s) Summary
Update PHP action pins
.github/workflows/clang-analyzer.yml, .github/workflows/codeql-analysis.yml, .github/workflows/lint.yml, .github/workflows/test-bundled.yml, .github/workflows/test.yml
The workflows now pin shivammathur/setup-php to version 2.40.0. The bundled test workflow updates both setup steps.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested reviewers: oschwald


Merge Risk: ⚪ Minimal · up to 2f5c0

The change only updates the PHP setup action pins across the listed workflows; no actionable merge-blocking risk is established.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating setup-php to version 2.40.0 across the workflows.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the workflow lines
The PHP pin now advances
Five paths follow the new commit
Two bundled steps join the change
The test runs hop along their way

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

All setup-php references consistently use the verified commit for version 2.40.0.

0 open findings

What changed in this PR

Updates all CI workflows to pin shivammathur/setup-php 2.40.0 at its verified commit SHA.

Changes:

  • Updates all six setup-php usages from 2.37.2 to 2.40.0.
  • Keeps workflow configurations otherwise unchanged.
File Description
.github/​workflows/​test.yml Updates test PHP setup.
.github/​workflows/​test-bundled.yml Updates both bundled-build jobs.
.github/​workflows/​lint.yml Updates lint PHP setup.
.github/​workflows/​codeql-analysis.yml Updates CodeQL PHP setup.
.github/​workflows/​clang-analyzer.yml Updates analyzer PHP setup.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@oschwald
oschwald merged commit 40d93ee into main Oct 11, 2026
126 checks passed
@oschwald
oschwald deleted the wstorey/eng-5610-geoip2-php-fix-macos-ci-by-updating-setup-php-to-2400 branch October 11, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants