madit
1
Analyse standalone third party magento module on github with magento-actions:
name: m2-actions-sips2-test
on: [push]
jobs:
magento2-build:
runs-on: ubuntu-latest
container: ubuntu
name: 'm2 tests & build'
steps:
- uses: actions/checkout@v3
- name: 'install fresh magento repo'
uses: MAD-I-T/magento-actions@v3.19
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'create-project'
magento_version: 2.4.5-p1
no_push: 1 ## add this arg to not push src to repo
- name: 'phpstan'
uses: MAD-I-T/magento-actions@v3.19
with:
process: 'phpstan'
exec_path: './PathTo/Module/' # e.g: app/code/Madit/Sips2
Analyse magento code on gitlab with gitlab-ci-magento :
include:
- remote: 'https://raw.githubusercontent.com/MAD-I-T/gitlab-ci-magento/main/.magento-actions-full-template.yml'
mess-detector:
variables:
INPUT_PROCESS: "mess-detector"
INPUT_MD_PATH: 'magento/vendor/magento/module-email' # path to the src to mess detect
extends: .mess-detector:test:stage