Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(supported-version): Magento v2.4.6 #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion installation-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,14 @@ runs:
with:
php-version: ${{ inputs.php_version }}

- run: composer self-update --${{ inputs.composer_version }}
- run: composer self-update ${{ inputs.composer_version }}
name: Pin to Composer Version ${{ inputs.composer_version }}
if: contains(inputs.composer_version, '.') == true
shell: bash

- run: composer self-update --${{ inputs.composer_version }}
name: Pin to Composer Version ${{ inputs.composer_version }} (Range)
if: contains(inputs.composer_version, '.') == false
shell: bash

- run: composer create-project --repository-url="${{ inputs.magento_repository }}" "${{ inputs.magento_version }}" ${{ inputs.magento_directory }} --no-install
Expand Down
8 changes: 4 additions & 4 deletions supported-version/dist/index.js

Large diffs are not rendered by default.

54 changes: 39 additions & 15 deletions supported-version/src/kind/get-currently-supported.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,43 @@ describe('getCurrentlySupportedVersions', () => {
expect(getCurrentlySupportedVersions(date)).not.toContain('magento/project-community-edition:2.4.0');
});

it('should say that v2.4.5 is supported in 2023 and most of 2024.', () => {
const firstDayOf2023: Date = new Date('2023-01-01T00:00:00Z');
const firstDayOf2024: Date = new Date('2024-01-01T00:00:00Z');
const lastDayOf2024: Date = new Date('2024-12-31T00:00:00Z');
const dayBeforeEol: Date = new Date('2024-11-24T00:00:00Z');
const dayOfEol: Date = new Date('2024-11-25T00:00:00Z');
const dayAfterEol: Date = new Date('2024-11-26T00:00:00Z');

expect(getCurrentlySupportedVersions(firstDayOf2023)).toContain('magento/project-community-edition:2.4.5-p1');
expect(getCurrentlySupportedVersions(firstDayOf2024)).toContain('magento/project-community-edition:2.4.5-p1');
expect(getCurrentlySupportedVersions(lastDayOf2024)).not.toContain('magento/project-community-edition:2.4.5-p1');
expect(getCurrentlySupportedVersions(dayBeforeEol)).toContain('magento/project-community-edition:2.4.5-p1');
expect(getCurrentlySupportedVersions(dayOfEol)).toContain('magento/project-community-edition:2.4.5-p1');
expect(getCurrentlySupportedVersions(dayAfterEol)).not.toContain('magento/project-community-edition:2.4.5-p1');
})
test.each([
//TODO: add a release-date so that past dates do not incur non-contemporaneous
// versions.
['2023-01-01T00:00:00Z', 'First day of 2023', [
'magento/project-community-edition:2.4.4-p2',
'magento/project-community-edition:2.4.4-p3',
'magento/project-community-edition:2.4.5-p1',
'magento/project-community-edition:2.4.5-p2',
'magento/project-community-edition:2.4.6',
]],
['2024-01-01T00:00:00Z', 'First day of 2024', [
'magento/project-community-edition:2.4.4-p3',
'magento/project-community-edition:2.4.5-p2',
'magento/project-community-edition:2.4.6',
]],
['2024-12-31T00:00:00Z', 'End of 2024', [
'magento/project-community-edition:2.4.4-p3',
'magento/project-community-edition:2.4.5-p2',
'magento/project-community-edition:2.4.6',
]],
['2025-08-08T00:00:00Z', 'Day Before v2.4.5 EoL', [
'magento/project-community-edition:2.4.5-p2',
'magento/project-community-edition:2.4.6',
]],
['2025-08-09T00:00:00Z', 'Day of v2.4.5 EoL', [
'magento/project-community-edition:2.4.5-p2',
'magento/project-community-edition:2.4.6',
]],
['2025-08-10T00:00:00Z', 'Day after v2.4.5 EoL', [
'magento/project-community-edition:2.4.6',
]],
])(
'supportedVersions for %s',
(date, description ,result) => {
expect(
getCurrentlySupportedVersions(new Date(date))
).toEqual(result);
}
);
})
33 changes: 23 additions & 10 deletions supported-version/src/versions/composite.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"varnish": "varnish:7.0",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2024-11-25T00:00:00+0000"
"eol": "2025-04-24T00:00:00+0000"
},
"magento/project-community-edition:>=2.4.5 <2.4.6": {
"magento": "magento/project-community-edition:>=2.4.5 <2.4.6",
Expand All @@ -88,32 +88,45 @@
"varnish": "varnish:7.0",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2024-11-25T00:00:00+0000"
"eol": "2025-08-09T00:00:00+0000"
},
"magento/project-community-edition:>=2.4.6 <2.4.7": {
"magento": "magento/project-community-edition:>=2.4.6 <2.4.7",
"php": 8.1,
"composer": "2.4.4",
"mysql": "mysql:8.0",
"elasticsearch": "elasticsearch:7.17.5",
"rabbitmq": "rabbitmq:3.9-management",
"redis": "redis:7.0",
"varnish": "varnish:7.1",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2026-03-14T00:00:00+0000"
},
"magento/project-community-edition": {
"magento": "magento/project-community-edition",
"php": 8.1,
"composer": 2,
"composer": "2.4.4",
"mysql": "mysql:8.0",
"elasticsearch": "elasticsearch:7.17.5",
"rabbitmq": "rabbitmq:3.9-management",
"redis": "redis:6.2",
"varnish": "varnish:7.0",
"redis": "redis:7.0",
"varnish": "varnish:7.1",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2024-11-25T00:00:00+0000"
"eol": "2026-03-14T00:00:00+0000"
},
"magento/project-community-edition:next": {
"magento": "magento/project-community-edition:next",
"php": 8.1,
"composer": 2.2,
"composer": 2,
"mysql": "mysql:8.0",
"elasticsearch": "elasticsearch:7.17.5",
"rabbitmq": "rabbitmq:3.9-management",
"redis": "redis:6.2",
"varnish": "varnish:7.0",
"redis": "redis:7.0",
"varnish": "varnish:7.1",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2024-11-25T00:00:00+0000"
"eol": "2026-03-14T00:00:00+0000"
}
}
43 changes: 41 additions & 2 deletions supported-version/src/versions/individual.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,20 @@
"varnish": "varnish:7.0",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2024-11-25T00:00:00+0000"
"eol": "2023-03-14T00:00:00+0000"
},
"magento/project-community-edition:2.4.4-p3": {
"magento": "magento/project-community-edition:2.4.4-p3",
"php": 8.1,
"composer": "2.2.21",
"mysql": "mysql:8.0",
"elasticsearch": "elasticsearch:7.17.5",
"rabbitmq": "rabbitmq:3.9-management",
"redis": "redis:6.2",
"varnish": "varnish:7.1",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2025-04-24T00:00:00+0000"
},
"magento/project-community-edition:2.4.5": {
"magento": "magento/project-community-edition:2.4.5",
Expand All @@ -231,6 +244,32 @@
"varnish": "varnish:7.0",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2024-11-25T00:00:00+0000"
"eol": "2023-03-14T00:00:00+0000"
},
"magento/project-community-edition:2.4.5-p2": {
"magento": "magento/project-community-edition:2.4.5-p2",
"php": 8.1,
"composer": "2.2.21",
"mysql": "mysql:8.0",
"elasticsearch": "elasticsearch:7.17.5",
"rabbitmq": "rabbitmq:3.9-management",
"redis": "redis:6.2",
"varnish": "varnish:7.1",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2025-08-09T00:00:00+0000"
},
"magento/project-community-edition:2.4.6": {
"magento": "magento/project-community-edition:2.4.6",
"php": 8.1,
"composer": "2.4.4",
"mysql": "mysql:8.0",
"elasticsearch": "elasticsearch:7.17.5",
"rabbitmq": "rabbitmq:3.9-management",
"redis": "redis:7.0",
"varnish": "varnish:7.1",
"nginx": "nginx:1.18",
"os": "ubuntu-latest",
"eol": "2026-03-14T00:00:00+0000"
}
}