feat: run setup:di:compile on push (#116)

* feat: run setup:di:compile on push

* feat: use mage-os/github-actions/cache-magento

* Removed fetch-depth

* Update example usage

* Switch to PHP 8.3 as default

* Update docs

---------

Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
Co-authored-by: Ryan Hoerr <rhoerr@users.noreply.github.com>
This commit is contained in:
Tjitse
2025-03-07 02:07:40 +00:00
committed by GitHub
parent ca7cd551a3
commit 22aca78cc8
2 changed files with 87 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
# Magento 2 setup:di:compile action
A Github Action that runs `php bin/magento setup:di:compile` and checks for compilation errors.
## Inputs
See the [action.yml](./action.yml)
## Usage
```yml
name: Magento setup:di:compile check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
setup-di-compile:
runs-on: ubuntu-latest
steps:
- uses: mage-os/github-actions/setup-di-compile@main
with:
php_version: "8.3"
composer_version: "2"
```