Skip to content

Add support for cpx - #1104

Merged
shivammathur merged 2 commits into
shivammathur:developfrom
WendellAdriel:feat/cpx
Aug 5, 2026
Merged

Add support for cpx#1104
shivammathur merged 2 commits into
shivammathur:developfrom
WendellAdriel:feat/cpx

Conversation

@WendellAdriel

Copy link
Copy Markdown
Contributor

Overview

cpx runs commands from any Composer package without requiring a global or per-project install. Exposing it through the tools input lets workflows use it directly without extra setup steps.

Solution

Add cpx as a phar type tool that downloads the executable attached to laravel/cpx GitHub releases, either the latest or a pinned version, and verifies the setup with --version. As a phar tool it also supports checksum pinning out of the box.

Details

The executable is attached to releases starting from v2.0.0, so earlier versions cannot be pinned.

Examples

- uses: shivammathur/setup-php@v2
  with:
    php-version: '8.5'
    tools: cpx

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ced9161) to head (55debe6).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop     #1104   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          942       942           
  Branches       330       330           
=========================================
  Hits           942       942           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shivammathur
shivammathur merged commit a6c5200 into shivammathur:develop Aug 5, 2026
70 checks passed
@shivammathur

Copy link
Copy Markdown
Owner

@WendellAdriel Thanks!

@WendellAdriel

Copy link
Copy Markdown
Contributor Author

Thanks for accepting the contribution @shivammathur! 💪

@WendellAdriel
WendellAdriel deleted the feat/cpx branch August 5, 2026 10:41
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.

2 participants