mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
feat(get-magento-version): add support for MageOS minimal distro
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"packages": [
|
||||
{
|
||||
"name": "mage-os/product-minimal-edition",
|
||||
"version": "3.0.0"
|
||||
}
|
||||
],
|
||||
"packages-dev": []
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
set -uo pipefail
|
||||
|
||||
WORKING_DIR="${1:-.}"
|
||||
PATTERN="magento/product-(community|enterprise)-edition|mage-os/product-community-edition"
|
||||
PATTERN="magento/product-(community|enterprise)-edition|mage-os/product-(community|minimal)-edition"
|
||||
|
||||
cd "$WORKING_DIR"
|
||||
|
||||
|
||||
@@ -38,6 +38,10 @@ OUT=$(bash "$SCRIPT" "$FIXTURES/mage-os")
|
||||
assert_eq "mage-os: version" '"1.0.0"' "$(field "$OUT" version)"
|
||||
assert_eq "mage-os: project" "mage-os/project-community-edition" "$(field "$OUT" project)"
|
||||
|
||||
OUT=$(bash "$SCRIPT" "$FIXTURES/mage-os-minimal")
|
||||
assert_eq "mage-os-minimal: version" '"3.0.0"' "$(field "$OUT" version)"
|
||||
assert_eq "mage-os-minimal: project" "mage-os/project-minimal-edition" "$(field "$OUT" project)"
|
||||
|
||||
OUT=$(bash "$SCRIPT" "$FIXTURES/store-json")
|
||||
assert_eq "store json: version" '"2.4.6-p1"' "$(field "$OUT" version)"
|
||||
assert_eq "store json: project" "magento/project-community-edition" "$(field "$OUT" project)"
|
||||
|
||||
Reference in New Issue
Block a user