mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
9d6355d5e6
Nightly builds initialize the required php infra with composer create-project composer/satis:dev-main.
This pulls in composer 2.4.2 as a dependency at the time of writing.
However, the result is a broken upstream nightly and mageos nightly build.
When composer install is run while determining the base package dependencies. The error is:
- laminas/laminas-dependency-plugin 2.5.0 requires composer-plugin-api >=1.1.0 <2.3.0
-> found composer-plugin-api[2.3.0] but it does not match the constraint.
Reference
* [failed job](https://github.com/mage-os/generate-mirror-repo-js/actions/runs/3508445982/jobs/5876852570)
* [checkout magento action](https://github.com/mage-os/generate-mirror-repo-js/blob/main/.github/actions/checkout-magento/action.yml#L41)
* [shivammathur/setup-php tools input](https://github.com/shivammathur/setup-php#wrench-tools-support)
Magento 2 Supported Versions
A Github Action that computes the currently supported Github Actions Matrix for Magento 2 Versions
All data comes from:
Inputs
See the action.yml
| Input | Description | Required | Default |
|---|---|---|---|
| kind | The "kind" of support you're targeting for your package. Allowed values are currently-supported, latest, custom, nightly and all |
false | 'currently-supported' |
| custom_versions | The versions you want to support, as a comma-separated string, i.e. 'magento/project-community-edition:2.3.7-p3, magento/project-community-edition:2.4.2-p2' | false | '' |
Kinds
currently-supported- The currently supported Magento Open Source versions by Adobe.latest- The latest version of Magento only.custom- A custom subset of the versions, as specified by you. Requirescustom_versionssibling key.nightly- The nightly version of Magento (only available viahttps://upstream-nightly.mage-os.org)all- All versions of Magento (including patched/unpatched versions).
Usage
name: Use Supported Versions
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
compute_matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.supported-version.outputs.matrix }}
steps:
- uses: graycoreio/github-actions-magento2/supported-version@main
id: supported-version
- run: echo ${{ steps.supported-version.outputs.matrix }}