Skip to content

Commit

Permalink
[ECP-9328] Make refresh commnand
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita committed Oct 1, 2024
1 parent d3ee92e commit 43912eb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
19 changes: 15 additions & 4 deletions .github/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sys-check: n98-magerun2.phar
magento:
sed '/exec /d' /tmp/install_magento.sh | bash

hyva: install-hyva configure flush
hyva: install-hyva refresh configure flush

# Hyva install
install-hyva:
Expand Down Expand Up @@ -72,7 +72,18 @@ fs:
production:
bin/magento deploy:mode:set production

refresh:
rm -rf generated/metadata
rm -rf generated/code
rm -rf pub/static/adminhtml/*
rm -rf pub/static/frontend/*

bin/magento setup:up
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

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
#GRAPHQL_SUITE=${MAGENTO_ROOT}/vendor/adyen/module-payment/Test/api-functional/GraphQl
GRAPHQL_XML=${MAGENTO_ROOT}/dev/tests/api-functional/phpunit_graphql.xml.dist
GRAPHQL_PHP=/data/extensions/workdir/Test/phpunit_graphql.php
GRAPHQL_SUITE=${MAGENTO_ROOT}/vendor/adyen/module-payment/Test/api-functional/GraphQl
8 changes: 4 additions & 4 deletions .github/scripts/install_hyva.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ echo "dev-${BRANCH_NAME}"
composer require adyen/module-hyva-checkout:dev-${BRANCH_NAME}
bin/magento module:enable --all

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
#bin/magento setup:upgrade
#bin/magento setup:di:compile
#bin/magento setup:static-content:deploy -f
#bin/magento cache:flush

8 changes: 6 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,17 @@ jobs:
- name: Set the theme value in Config table
run: |
docker exec -i mariadb mysql -umagento -pmagento magento -e "UPDATE core_config_data SET value = '5' WHERE path = 'design/theme/theme_id' AND scope = 'default';"
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 -u www-data magento2-hyva-container bin/magento cache:flush
- name: Check enabled Magento theme
- name: Refresh the Setup
run: |
docker exec -u www-data magento2-hyva-container bash -c "cd /var/www/html && bin/magento config:show | grep design/theme/theme_id"
- name: Check enabled Magento theme
run: |
docker exec -u www-data magento2-hyva-container make refresh
- name: Run E2E tests
run: |
chmod +x .github/scripts/e2e.sh && \
Expand Down

0 comments on commit 43912eb

Please sign in to comment.