Files
github-actions-magento2/docs/workflows/check-extension.md
T
Damien Retzinger 74f1e3ec39 docs: use x-release-please-version
release-please with x-release-please-major clobbered the magento2 -> magento8. This is obviously dumb.
2026-05-09 20:10:09 -04:00

2.5 KiB

MageCheck Extension

A Github Workflow that runs various kinds of quality checks for a Magento Extension.

Inputs

See the check-extension.yaml

Input Description Required Default
matrix JSON string of version matrix for Magento true NULL
fail-fast Same as Github's fail-fast false true
path The folder of the Magento store or extension that you are testing false .
magento_repository Where to install Magento from false https://mirror.mage-os.org/
composer_cache_key A key to version the composer cache. Can be incremented if you need to bust the cache. false _mageos

Matrix Format

The Magento matrix format outlined by the supported versions action.

Usage

name: Unit Test

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  compute_matrix:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.supported-version.outputs.matrix }}
    steps:
      - uses: actions/checkout@v6
      - uses: graycoreio/github-actions-magento2/supported-version@v7.0.0 # x-release-please-version
        id: supported-version
      - run: echo ${{ steps.supported-version.outputs.matrix }}
  check-extension:
    needs: compute_matrix
    uses: graycoreio/github-actions-magento2/.github/workflows/check-extension.yaml@v7.0.0 # x-release-please-version
    with:
      matrix: ${{ needs.compute_matrix.outputs.matrix }}