Compare commits

...

3 Commits

Author SHA1 Message Date
GrayBot dc750a9f2f chore: release 4.0.1 (#208) 2025-12-16 11:48:46 -05:00
Damien Retzinger 7c0bc65842 fix(supported-version): handle semver-ish values from old magento verisons 2025-12-16 11:38:44 -05:00
Damien Retzinger 89912779a9 ci: restore accidentally removed id from integration test 2025-12-16 11:28:08 -05:00
8 changed files with 47 additions and 27 deletions
@@ -32,6 +32,7 @@ jobs:
with:
kind: currently-supported
include_services: true
id: supported-version
integration-workflow:
needs: compute_matrix
uses: ./.github/workflows/integration.yaml
+1 -1
View File
@@ -1 +1 @@
{".":"4.0.0"}
{".":"4.0.1"}
+7
View File
@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [4.0.1](https://github.com/graycoreio/github-actions-magento2/compare/v4.0.0...v4.0.1) (2025-12-16)
### Bug Fixes
* **supported-version:** handle semver-ish values from old magento verisons ([7c0bc65](https://github.com/graycoreio/github-actions-magento2/commit/7c0bc65842e0e866cd957a44f879d37d04d11dce))
## [4.0.0](https://github.com/graycoreio/github-actions-magento2/compare/v3.0.0...v4.0.0) (2025-12-15)
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@graycoreio/github-actions-magento2",
"version": "4.0.0",
"version": "4.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@graycoreio/github-actions-magento2",
"version": "4.0.0",
"version": "4.0.1",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.11.1"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@graycoreio/github-actions-magento2",
"version": "4.0.0",
"version": "4.0.1",
"description": "Github Actions for Magento 2",
"scripts": {
"test": "cd supported-version && npm run test && cd -",
+21 -21
View File
File diff suppressed because one or more lines are too long
+12 -1
View File
@@ -35,8 +35,19 @@ describe('getUsableVersions for magento-open-source', () => {
mockGetVersions.mockReturnValue({
'magento/project-community-edition:2.4.6': { composer: '2.0.0' }
});
const versions = getUsableVersions(project);
expect(versions).toContain('magento/project-community-edition:2.4.6');
});
it('should handle numeric composer versions', () => {
mockGetVersions.mockReturnValue({
'magento/project-community-edition:2.3.7-p3': { composer: 1 },
'magento/project-community-edition:2.4.6': { composer: 2 }
});
const versions = getUsableVersions(project);
expect(versions).not.toContain('magento/project-community-edition:2.3.7-p3');
expect(versions).toContain('magento/project-community-edition:2.4.6');
});
});
+2 -1
View File
@@ -12,7 +12,8 @@ export const getUsableVersions = (project: string): string[] => {
*/
// Packagist retired support for Composer 1 on 2025-09-01.
if (value.composer && semver.lt(value.composer.toString(), '2.0.0')) {
const composerVersion = semver.coerce(value.composer.toString());
if (composerVersion && semver.lt(composerVersion, '2.0.0')) {
return false;
}