From 521fdec6d6356624d2f68130a8353aa7d150a3aa Mon Sep 17 00:00:00 2001 From: Herve Tribouilloy Date: Tue, 12 May 2026 14:44:27 +0100 Subject: [PATCH] feat(setup-di-compile): restore Graycore parity --- setup-di-compile/action.yml | 54 ++++++++----------------------------- 1 file changed, 11 insertions(+), 43 deletions(-) diff --git a/setup-di-compile/action.yml b/setup-di-compile/action.yml index fb04052..17a2abf 100644 --- a/setup-di-compile/action.yml +++ b/setup-di-compile/action.yml @@ -1,58 +1,26 @@ name: "Magento compilation (setup:di:compile)" author: "MageOS" -description: "A Github Action that runs bin/magento setup:di:compile." +description: "A GitHub Action that runs bin/magento setup:di:compile." inputs: - php_version: - required: true - default: "8.3" - description: "PHP version used to run setup:di:compile." - - composer_version: - required: true - default: "2" - description: "The version of composer to use." + path: + required: false + default: "." + description: "Path to the Magento root directory. Accepts the output of the setup-magento action." runs: using: composite steps: - - name: Checkout Project - uses: actions/checkout@v3 - - - name: Get changed files that could break compilation - uses: tj-actions/changed-files@v39 - id: changed-files - with: - files_yaml: | - magento: - - 'composer.lock' - - 'composer.json' - - '**/*.php' - - '**/*.xml' - - - name: Set PHP Version - if: steps.changed-files.outputs.magento_any_changed == 'true' - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ inputs.php_version }} - tools: composer:v${{ inputs.composer_version }} - coverage: none - - - uses: mage-os/github-actions/cache-magento@main - with: - mode: 'store' - - - name: Install composer dependencies - if: steps.changed-files.outputs.magento_any_changed == 'true' - shell: bash - run: composer install - - name: Enable all modules - if: steps.changed-files.outputs.magento_any_changed == 'true' + working-directory: ${{ inputs.path }} shell: bash run: php bin/magento module:enable --all - name: Compile - if: steps.changed-files.outputs.magento_any_changed == 'true' + working-directory: ${{ inputs.path }} shell: bash run: php bin/magento setup:di:compile + +branding: + icon: "tool" + color: "orange" \ No newline at end of file