[MAINT] Github Actions Reunification - `setup-di-compile`

未关闭
#334 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
35/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
冷清
技术栈
github-actions, php, yaml
领域
ci-cd

调研方向

The work is in setup-di-compile/action.yml. Remove the actions/checkout and shivammathur/setup-php steps, the php_version and composer_version inputs, the mode: 'store' input on cache-magento, and the tj-actions/changed-files step with its if: gates. Done when the action runs unconditionally and has no embedded checkout or PHP setup. The breaking change needs migration PRs in the dependent repos, so confirm that plan with maintainers before merging.

由索引模型根据 Issue 内容生成。

描述

Action: setup-di-compile

Status: 🔴 Refactor — remove embedded PHP setup and checkout
Files: setup-di-compile/action.yml


Context

Graycore removed setup-di-compile entirely (feat!: remove unmaintained setup-di-compile action, Feb 2026). The mage-os fork retains it but needs the same lean treatment applied to coding-standard (feat(coding-standard)!: remove pr-diff feature and built-in php setup): strip embedded checkout and PHP setup, let calling workflows own those concerns.


Current problems

Area Current (mage-os) Target
php_version / composer_version inputs Present — drives embedded PHP setup Remove; caller handles PHP setup
actions/checkout@v3 step Embedded in action Remove; caller must checkout
shivammathur/setup-php@v2 step Embedded in action Remove
cache-magento mode: 'store' Uses deprecated mode input Remove mode: (aligns with action-cache-magento.md)
tj-actions/changed-files@v39 Gates all steps on changed files Remove — action always runs

Dependents

Repo Risk
ryansunxl/mageos-magento2 Uses setup-di-compile — callers must add PHP setup before using the action
mage-os/mageos-magento2 Uses setup-di-compile — same

Removing php_version / composer_version inputs is a breaking change. Coordinate with or open PRs in both repos to add a shivammathur/setup-php@v2 step before the setup-di-compile call.


Changes needed

  1. Remove actions/checkout step — caller is responsible for checkout
  2. Remove shivammathur/setup-php@v2 step — caller is responsible for PHP/composer setup
  3. Remove php_version and composer_version inputs
  4. Remove mode: 'store' from the cache-magento call (after update-cache-magento PR merges)
  5. Remove tj-actions/changed-files step and all if: steps.changed-files.outputs.magento_any_changed == 'true' conditions — action always runs unconditionally
  6. Open migration PRs in ryansunxl/mageos-magento2 and mage-os/mageos-magento2 before or alongside this change
主要语言
TypeScript
星标
12
派生
15
平均合并
3 天 15 小时
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mage-os/github-actions 的其他 Issue

查看 mage-os/github-actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。