Skip to content

Commit d961130

Browse files
committed
Merge branch 'main' into paypal
2 parents 220817c + 0a2c637 commit d961130

File tree

3,536 files changed

+33748
-75977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,536 files changed

+33748
-75977
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,24 @@
17071707
"contributions": [
17081708
"bug"
17091709
]
1710+
},
1711+
{
1712+
"login": "warleyelias",
1713+
"name": "Warley Elias",
1714+
"avatar_url": "https://avatars.githubusercontent.com/u/5356619?v=4",
1715+
"profile": "https://www.linkedin.com/in/warley-elias-531a4116/",
1716+
"contributions": [
1717+
"code"
1718+
]
1719+
},
1720+
{
1721+
"login": "vernad",
1722+
"name": "vernad",
1723+
"avatar_url": "https://avatars.githubusercontent.com/u/51973447?v=4",
1724+
"profile": "https://github.com/vernad",
1725+
"contributions": [
1726+
"code"
1727+
]
17101728
}
17111729
],
17121730
"commitType": "docs"

.ddev/commands/web/openmage-install

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## ProjectTypes: magento
44
## Description: Install OpenMage
55
## Usage: openmage-install [-d|--default] [-s|--sampledata] [-k|--keep] [-q|--quiet]
6-
## Example: ddev openmage-install -d -s -k
7-
## Flags: [{"Name":"default","Shorthand":"d","Usage":"use default values"},{"Name":"sampledata","Shorthand":"s","Usage":"install sample data"},{"Name":"keep","Shorthand":"k","Usage":"keep sample data package"},{"Name":"quiet","Shorthand":"q","Usage":"silent install with sample data"}]
6+
## Example: ddev openmage-install -d -s -k -x
7+
## Flags: [{"Name":"default","Shorthand":"d","Usage":"use default values"},{"Name":"sampledata","Shorthand":"s","Usage":"install sample data"},{"Name":"keep","Shorthand":"k","Usage":"keep sample data package"},{"Name":"quiet","Shorthand":"q","Usage":"silent install with sample data"},{"Name":"extra","Shorthand":"x","Usage":"install with updated sample data (ddev)"}]
88

99
ROOT="${PWD}"
1010

@@ -26,6 +26,8 @@ while :; do
2626
USE_DEFAULT_FLAG='true'
2727
SAMPLE_DATA_FLAG='true'
2828
;;
29+
-x|--extra)
30+
SAMPLE_DATA_EXTRA_FLAG='true' ;;
2931
--) # End of all options.
3032
shift
3133
break
@@ -69,10 +71,14 @@ else
6971
fi
7072

7173
if [[ $INSTALL_SAMPLE_DATA =~ ^(yes|y) ]]; then
72-
SAMPLE_DATA_URL=https://github.com/Vinai/compressed-magento-sample-data/raw/master/compressed-magento-sample-data-1.9.2.4.tgz
7374
SAMPLE_DATA_DIRECTORY="${ROOT}/.ddev/.sampleData"
75+
76+
SAMPLE_DATA_URL=https://github.com/Vinai/compressed-magento-sample-data/raw/master/compressed-magento-sample-data-1.9.2.4.tgz
7477
SAMPLE_DATA_FILE=sample_data.tgz
7578

79+
SAMPLE_DATA_OM_URL=https://github.com/sreichel/openmage-sample-data/blob/main/src/sample-data.sql?raw=true
80+
SAMPLE_DATA_OM_FILE=sample_data_om.sql
81+
7682
if [[ ! -d "${SAMPLE_DATA_DIRECTORY}" ]]; then
7783
echo "Creating Sample Data directory..."
7884
mkdir -p "${SAMPLE_DATA_DIRECTORY}"
@@ -84,6 +90,13 @@ if [[ $INSTALL_SAMPLE_DATA =~ ^(yes|y) ]]; then
8490
wget "${SAMPLE_DATA_URL}" -O "${SAMPLE_DATA_FILE}"
8591
fi
8692

93+
if [[ "${SAMPLE_DATA_EXTRA_FLAG}" ]]; then
94+
if [[ ! -f "${SAMPLE_DATA_DIRECTORY}/${SAMPLE_DATA_OM_FILE}" ]]; then
95+
echo "Downloading extra Sample Data..."
96+
wget "${SAMPLE_DATA_OM_URL}" -O "${SAMPLE_DATA_OM_FILE}"
97+
fi
98+
fi
99+
87100
echo "Uncompressing Sample Data..."
88101
tar xf "${SAMPLE_DATA_FILE}"
89102

@@ -96,14 +109,18 @@ if [[ $INSTALL_SAMPLE_DATA =~ ^(yes|y) ]]; then
96109
rm -rf "${ROOT}"/"${DDEV_DOCROOT}/var/cache/"*
97110

98111
echo "Importing Sample Data into the database..."
99-
mysql -u db -pdb -h db db < "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/magento_sample_data_for_1.9.2.4.sql
112+
if [[ "${SAMPLE_DATA_EXTRA_FLAG}" ]]; then
113+
mysql -u db -pdb -h db db < "${SAMPLE_DATA_DIRECTORY}/${SAMPLE_DATA_OM_FILE}"
114+
else
115+
mysql -u db -pdb -h db db < "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/magento_sample_data_for_1.9.2.4.sql
116+
fi
100117

101118
# remove sample data
102119
if [[ "${SAMPLE_DATA_KEEP_FLAG}" ]]; then
103120
# shellcheck disable=SC2046
104121
cd "${ROOT}" || exit
105122
echo "Removing uncompressed files..."
106-
rm -rf magento-sample-data-1.9.2.4/
123+
rm -rf "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/
107124
else
108125
cd "${ROOT}" || exit
109126
echo "Removing sample data..."

.ddev/commands/web/vendor-patches

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
## Usage: vendor-patches
55
## Example: ddev vendor-patches
66

7-
php vendor/bin/vendor-patches generate
7+
php vendor/bin/vendor-patches generate --patches-folder=.vendor-patches "$@"

.github/labeler.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,5 +939,6 @@
939939
'cypress':
940940
- changed-files:
941941
- any-glob-to-any-file: [
942-
cypress/*
942+
cypress/*,
943+
cypress/**/*
943944
]

.github/release-drafter.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@ categories:
44
- title: '🚨 Security'
55
labels:
66
- 'security'
7-
- title: '🚀 Features'
8-
labels:
9-
- 'enhancement'
10-
- 'new feature'
117
- title: '🐛 Bug Fixes'
128
labels:
139
- 'fix'
1410
- 'bugfix'
1511
- 'bug'
12+
- title: '🚀 Features'
13+
labels:
14+
- 'new feature'
15+
- title: '🦾 Enhancements'
16+
labels:
17+
- 'enhancement'
18+
- 'improvement'
1619
- title: '📖 Documentation'
1720
labels:
1821
- 'documentation'

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: Initialize CodeQL
41-
uses: github/codeql-action/init@v3
41+
uses: github/codeql-action/init@v4
4242
with:
4343
languages: ${{ matrix.language }}
4444
config-file: ./.github/codeql-config.yml
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v3
56+
uses: github/codeql-action/autobuild@v4
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -66,6 +66,6 @@ jobs:
6666
# ./location_of_script_within_repo/buildscript.sh
6767

6868
- name: Perform CodeQL Analysis
69-
uses: github/codeql-action/analyze@v3
69+
uses: github/codeql-action/analyze@v4
7070
with:
7171
category: "/language:${{matrix.language}}"

.github/workflows/cypress.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: [ubuntu-latest]
1212
strategy:
1313
matrix:
14-
webserver: ['apache-fpm', 'nginx-fpm']
14+
webserver: ['nginx-fpm']
1515

1616
steps:
1717
- uses: actions/checkout@v5
@@ -21,7 +21,7 @@ jobs:
2121
autostart: false
2222

2323
# install DDEV configuration
24-
- run: ddev config --project-type=magento --php-version=8.1 --webserver-type=${{ matrix.webserver }}
24+
- run: ddev config --project-type=magento --php-version=8.1 --webserver-type=${{ matrix.webserver }} --web-environment="MAGE_IS_DEVELOPER_MODE=1,OPENMAGE_CONFIG_OVERRIDE_ALLOWED=1,OPENMAGE_CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME=ENV name default,OPENMAGE_CONFIG__WEBSITES__BASE__GENERAL__STORE_INFORMATION__PHONE=ENV phone website,OPENMAGE_CONFIG__STORES__GERMAN__GENERAL__STORE_INFORMATION__ADDRESS=ENV address store"
2525

2626
# install composer dependencies
2727
- run: ddev composer install
@@ -37,3 +37,10 @@ jobs:
3737

3838
# run cypress
3939
- run: ddev cypress-run --config-file .cypress.config.js
40+
41+
- name: Upload screenshots
42+
uses: actions/upload-artifact@v5
43+
if: ${{ !success() }}
44+
with:
45+
name: cypress-screenshots
46+
path: cypress/screenshots

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
operating-system: [ubuntu-latest]
21-
php-versions: ['8.1', '8.4']
21+
php-versions: ['8.1', '8.5']
2222
mysql-version: ['5.7', '8.0', '8.4']
2323

2424
services:

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v5
1515
- name: Check Spelling
16-
uses: rojopolis/spellcheck-github-actions@0.52.0
16+
uses: rojopolis/spellcheck-github-actions@0.54.0
1717
with:
1818
config_path: .github/spellcheck.yml
1919
task_name: Markdown

.github/workflows/syntax-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
php: ['8.1', '8.4']
17+
php: ['8.1', '8.5']
1818

1919
name: PHP Syntax ${{ matrix.php }}
2020

0 commit comments

Comments
 (0)