Skip to content

Commit

Permalink
[ECP-9328] Optimize the commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita committed Oct 1, 2024
1 parent e4e0e84 commit bfb9aaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ configure: n98-magerun2.phar
bin/magento config:set payment/adyen_abstract/payment_methods_active 1
./n98-magerun2.phar config:store:set --encrypt payment/adyen_abstract/notification_password '1234' > /dev/null
./n98-magerun2.phar config:store:set --encrypt payment/adyen_abstract/api_key_test "${ADYEN_API_KEY}" > /dev/null
# bin/magento config:set dev/template/minify_html 0
echo "configuration step ended"

# Clear cache
Expand All @@ -69,6 +68,10 @@ fs:
production:
bin/magento deploy:mode:set production

set_hyva_checkout:
mysql -umagento -pmagento magento -e "UPDATE m2_core_config_data SET value = '5' WHERE path = 'design/theme/theme_id' AND scope = 'default';"
mysql -umagento -pmagento magento -e "INSERT INTO m2_core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'hyva_themes_checkout/general/checkout', 'default');"

MAGENTO_ROOT=/var/www/html
GRAPHQL_XML=${MAGENTO_ROOT}/dev/tests/api-functional/phpunit_graphql.xml.dist
GRAPHQL_PHP=/data/extensions/workdir/Test/phpunit_graphql.php
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,13 @@ jobs:
- name: Switch to production mode
run: docker exec -u www-data magento2-hyva-container make production

- name: Set the theme value in Config table
run: |
docker exec -i mariadb mysql -umagento -pmagento magento -e "UPDATE m2_core_config_data SET value = '5' WHERE path = 'design/theme/theme_id' AND scope = 'default';"
docker exec -i mariadb mysql -umagento -pmagento magento -e "INSERT INTO m2_core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'hyva_themes_checkout/general/checkout', 'default');"
docker exec -u www-data magento2-hyva-container bin/magento cache:flush
- name: Set HYVA as theme and default checkout
run: docker exec -i mariadb mysql -umagento -pmagento magento -e make set_hyva_checkout

- name: Check DB for enabled Checkout Module
run: |
docker exec -i mariadb mysql -umagento -pmagento magento -e "SELECT * FROM m2_core_config_data;"
docker exec -u www-data magento2-hyva-container make flush
docker exec -u www-data magento2-hyva-container bin/magento setup:static-content:deploy -f
- name: Run E2E tests
run: |
Expand Down

0 comments on commit bfb9aaf

Please sign in to comment.