Skip to content

Commit

Permalink
Merge branch 'main' into Update_Article_URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
candemiralp authored Dec 24, 2024
2 parents f1317a5 + d02c7f6 commit 217e9e3
Show file tree
Hide file tree
Showing 177 changed files with 7,328 additions and 1,852 deletions.
8 changes: 4 additions & 4 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ DB_NAME=magento \
DB_USER=magento \
DB_PASSWORD=magento \
DB_PREFIX=m2_ \
ELASTICSEARCH_SERVER="<will be defined>" \
ELASTICSEARCH_PORT=9200 \
ELASTICSEARCH_INDEX_PREFIX=magento2 \
ELASTICSEARCH_TIMEOUT=15 \
OPENSEARCH_SERVER="<will be defined>" \
OPENSEARCH_PORT=9200 \
OPENSEARCH_INDEX_PREFIX=magento2 \
OPENSEARCH_TIMEOUT=15 \
ADMIN_NAME=admin \
ADMIN_LASTNAME=admin \
[email protected] \
Expand Down
8 changes: 4 additions & 4 deletions .github/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ configure: n98-magerun2.phar
bin/magento config:set payment/adyen_abstract/payment_pre_authorized 'pending_payment'
bin/magento config:set payment/adyen_abstract/capture_mode 'manual'
bin/magento config:set payment/adyen_abstract/paypal_capture_mode 0
bin/magento config:set payment/adyen_abstract/recurring_configuration '{"adyen_cc":{"name":"Credit Card","enabled":"1","recurringProcessingModel":"CardOnFile"}}'
bin/magento config:set payment/adyen_abstract/recurring_configuration '{"adyen_cc":{"name":"Cards","enabled":"1","recurringProcessingModel":"CardOnFile"},"adyen_sepadirectdebit":{"name":"SEPA Direct Debit","enabled":"1","recurringProcessingModel":"CardOnFile"}}'
bin/magento config:set payment/adyen_cc_vault/require_cvc 1
bin/magento config:set payment/adyen_abstract/client_key_test "${ADYEN_CLIENT_KEY}"
bin/magento config:set payment/adyen_abstract/notification_username 'admin'
Expand All @@ -60,8 +60,9 @@ flush:
enable-express:
bin/magento module:enable Adyen_ExpressCheckout
bin/magento setup:upgrade
bin/magento config:set payment/adyen_express/show_google_pay_on "1,2,3"
bin/magento config:set payment/adyen_express/show_apple_pay_on "1,2,3"
bin/magento config:set payment/adyen_googlepay/express_show_on "1,2,3"
bin/magento config:set payment/adyen_applepay/express_show_on "1,2,3"
bin/magento config:set payment/adyen_paypal_express/express_show_on "1,2,3"
bin/magento cache:clean

# Full plugin setup
Expand Down Expand Up @@ -115,7 +116,6 @@ setup-mftf:
--MAGENTO_BASE_URL "https://${MAGENTO_HOST}/" \
--MAGENTO_BACKEND_NAME "${ADMIN_URLEXT}" \
--MAGENTO_ADMIN_USERNAME "${ADMIN_USERNAME}" \
--MAGENTO_ADMIN_PASSWORD "${ADMIN_PASSWORD}" \
--BROWSER chrome \
--ELASTICSEARCH_VERSION 7;
echo 'SELENIUM_HOST=selenium' >> dev/tests/acceptance/.env;
Expand Down
5 changes: 4 additions & 1 deletion .github/docker-compose.e2e.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
playwright:
image: mcr.microsoft.com/playwright:v1.40.1
image: mcr.microsoft.com/playwright:v1.49.0
shm_size: 1gb
ipc: host
cap_add:
Expand All @@ -20,8 +20,11 @@ services:
- ADYEN_MERCHANT
- GOOGLE_USERNAME
- GOOGLE_PASSWORD
- AMAZON_USERNAME
- AMAZON_PASSWORD
- WEBHOOK_USERNAME
- WEBHOOK_PASSWORD
- CI
volumes:
- ./scripts/e2e.sh:/e2e.sh
- ../test-report:/tmp/test-report
Expand Down
10 changes: 5 additions & 5 deletions .github/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ services:
MARIADB_DATABASE: magento
MARIADB_USER: magento
MARIADB_PASSWORD: magento
elastic:
image: elasticsearch:7.17.13
container_name: elasticsearch
opensearch:
image: bitnami/opensearch:2
container_name: opensearch-container
networks:
- backend
ports:
Expand All @@ -37,7 +37,7 @@ services:
- magento2.test.com
environment:
DB_SERVER: mariadb
ELASTICSEARCH_SERVER: elasticsearch
OPENSEARCH_SERVER: opensearch-container
MAGENTO_HOST: magento2.test.com
VIRTUAL_HOST: magento2.test.com
COMPOSER_MEMORY_LIMIT: -1
Expand All @@ -52,7 +52,7 @@ services:
MAGENTO_VERSION:
depends_on:
- db
- elastic
- opensearch
volumes:
- ../:/data/extensions/workdir
- ./Makefile:/var/www/html/Makefile
Expand Down
24 changes: 10 additions & 14 deletions .github/scripts/install_magento.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,25 @@ else
exit 1
fi

USE_ELASTICSEARCH='1'
if [[ "$MAGENTO_VERSION" =~ ^2\.3 ]]; then
USE_ELASTICSEARCH='0'
fi

if [ "$USE_ELASTICSEARCH" == '1' ] && [ "$ELASTICSEARCH_SERVER" != "<will be defined>" ]; then
if [ "$OPENSEARCH_SERVER" != "<will be defined>" ]; then
MAGENTO_INSTALL_ARGS=$(echo \
--elasticsearch-host="$ELASTICSEARCH_SERVER" \
--elasticsearch-port="$ELASTICSEARCH_PORT" \
--elasticsearch-index-prefix="$ELASTICSEARCH_INDEX_PREFIX" \
--elasticsearch-timeout="$ELASTICSEARCH_TIMEOUT")
--search-engine="opensearch" \
--opensearch-host="$OPENSEARCH_SERVER" \
--opensearch-port="$OPENSEARCH_PORT" \
--opensearch-index-prefix="$OPENSEARCH_INDEX_PREFIX" \
--opensearch-timeout="$OPENSEARCH_TIMEOUT")
RET=1
while [ $RET -ne 0 ]; do
echo "Checking if $ELASTICSEARCH_SERVER is available."
curl -XGET "$ELASTICSEARCH_SERVER:$ELASTICSEARCH_PORT/_cat/health?v&pretty" >/dev/null 2>&1
echo "Checking if $OPENSEARCH_SERVER is available."
curl -XGET "$OPENSEARCH_SERVER:$OPENSEARCH_PORT/_cat/health?v&pretty" >/dev/null 2>&1
RET=$?

if [ $RET -ne 0 ]; then
echo "Connection to Elasticsearch is pending."
echo "Connection to OpenSearch is pending."
sleep 5
fi
done
echo "Elasticsearch server $ELASTICSEARCH_SERVER is available."
echo "OpenSearch server $OPENSEARCH_SERVER is available."
fi

if [[ -e /tmp/magento.tar.gz ]]; then
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
name: "CodeQL"

on:
push:
branches: [ "develop", "develop-6", "develop-7", "develop-8", "main", "main-6", "main-7", "main-8" ]
pull_request:
branches: [ "develop", "main" ]
paths-ignore:
- 'view/base/web/js/*'
schedule:
- cron: "6 1 * * 0"
- 'view/base/web/js/**'

jobs:
analyze:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Prepare the next main release
uses: Adyen/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.ADYEN_RELEASE_AUTOMATION_USER_TOKEN }}
develop-branch: main
version-files: composer.json
release-title: Adyen Magento-2 Plugin
Expand Down
115 changes: 0 additions & 115 deletions .github/workflows/e2e-test-dispatch.yml

This file was deleted.

79 changes: 0 additions & 79 deletions .github/workflows/e2e-test-express-checkout.yml

This file was deleted.

Loading

0 comments on commit 217e9e3

Please sign in to comment.