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

Aperta
#334 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
github-actions, php, yaml
Ambito
ci-cd

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
12
Fork
15
Merge medio
3g 15h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mage-os/github-actions

Tutte le issue di mage-os/github-actions

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.