Skip to content

[MAINT] Github Actions Reunification - setup-magento #336

@damienwebdev

Description

@damienwebdev

Action: setup-magento

Status: 🔴 Needs update
Files: setup-magento/action.yml


Summary of differences

Area Graycore (source of truth) Mage-OS (fork)
Default PHP version 8.4 8.3
Default magento_version magento/project-community-edition:2.4.8-p3 ~2.4.7-p4
composer_auth input Present Absent
COMPOSER_AUTH env on composer steps Present Absent
Internal action ref graycoreio/github-actions-magento2/fix-magento-install@main mage-os/github-actions/fix-magento-install@main

Dependents (mage-os/github-actions consumers)

No external repos depend on setup-magento directly (per dependents.md).


Changes needed in mage-os fork

  1. Bump default PHP version from 8.3 to 8.4
  2. Update default magento_version from ~2.4.7-p4 to magento/project-community-edition:2.4.8-p3
  3. Add composer_auth input (required: false, description: "Composer Authentication Credentials")
  4. Add COMPOSER_AUTH: ${{ inputs.composer_auth }} env to all relevant composer steps (install, require, etc.)

Internal workflow impact

After this action is updated, _internal-setup-magento.yaml also needs:

  • Add MAGENTO_COMPOSER_REPO: "https://mirror.mage-os.org/" workflow-level env var
  • Bump actions/checkout from v4 to v6 (two occurrences) and actions/cache from v4 to v5
  • Add COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} env to all composer steps
  • Add composer_auth: ${{ secrets.COMPOSER_AUTH }} and magento_repository: ${{ env.MAGENTO_COMPOSER_REPO }} inputs to setup-magento step
  • Switch cache-magento refs to ./cache-magento and remove mode: inputs (after update-cache-magento PR merges)
  • Bump smoke test PHP to 8.4, Composer to v2.8, Magento to 2.4.8-p3

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions