Skip to content

Support workflow consumers without a local DevTools dependency#307

Merged
coisa merged 5 commits intomainfrom
bugfix/303-workflow-call-dev-tools-fallback
Apr 30, 2026
Merged

Support workflow consumers without a local DevTools dependency#307
coisa merged 5 commits intomainfrom
bugfix/303-workflow-call-dev-tools-fallback

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 30, 2026

Related Issue

Closes #303

Motivation / Context

  • reusable workflows currently assume composer dev-tools exists in the consumer repository;
  • workflow-only consumers need a deterministic fallback tied to the checked-out DevTools workflow source instead of an unrelated implicit global version.

Changes

  • reworked .github/actions/php/setup-composer to use ramsey/composer-install for generic Composer installs, skip the consumer install when no composer.json is present, and expose a shared dev-tools runtime plus autoload environment variables;
  • updated reusable workflows and packaged changelog helpers to call dev-tools from the shared runtime instead of shelling into composer dev-tools;
  • documented the local-vs-workflow runtime behavior and added regression coverage for local and fallback runtime resolution.

Verification

  • composer dev-tools
  • Focused command(s):
    • composer dev-tools tests -- --filter='SetupComposerActionTest'
    • composer dev-tools code-style
    • composer dev-tools phpdoc
  • Manual verification:
    • not run against a live GitHub Actions workflow from this local checkout

Documentation / Generated Output

  • README updated
  • docs/ updated
  • Generated or synchronized output reviewed

Changelog

  • Added a notable CHANGELOG.md entry

Reviewer Notes

  • .github/wiki was already dirty in the local checkout and was intentionally kept out of this branch and commit.
  • The fallback runtime is resolved from the checked-out .dev-tools-actions source checkout, keeping workflow behavior aligned with the workflow ref used by the reusable workflow.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9702f63aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/actions/php/setup-composer/dev-tools-runtime-lib.sh Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0dc32afaca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/actions/php/setup-composer/dev-tools-runtime-lib.sh Outdated
@coisa
Copy link
Copy Markdown
Contributor Author

coisa commented Apr 30, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@coisa coisa merged commit f4d24bc into main Apr 30, 2026
33 checks passed
@coisa coisa deleted the bugfix/303-workflow-call-dev-tools-fallback branch April 30, 2026 06:13
@github-project-automation github-project-automation Bot moved this from Backlog to Released in PHP Fast Forward Project Apr 30, 2026
github-actions Bot added a commit that referenced this pull request Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

Support workflow_call consumers without a local DevTools dependency

1 participant