Test for MAD-I-T/magento-actions@master
Source files: Latest magento 2.4.6 When using versions under 2.4.6, please uncomment elasticsearch service and comment opensearch one in the main.yml.
Check .github/workflow/main.yml
for usage example.
The action should download and populate a dir call magento at the root of the github repo and test the src code against basic magento tasks such as unit testing, coding standard checking, build, etc...
Reminder: Because a habit to follow https://12factor.net composer credentials should be set through github secret option.
- Go to
Settings>Secrets>Repository secrets
- Create variable
COMPOSER_AUTH
- Add you composer auth as value e.g :
{"http-basic":{"repo.magento.com": {"username": "xxxxxxxxxxxxxx", "password": "xxxxxxxxxxxxxx"}}}
One can use our magento-devbox as local dev environment, linux and mac os supported.