diff --git a/.github/Makefile b/.github/Makefile index 1a75de356..9fff97afe 100644 --- a/.github/Makefile +++ b/.github/Makefile @@ -81,6 +81,14 @@ fs: production: bin/magento deploy:mode:set production +# E2E test setup +setup-e2e: + bin/magento config:set currency/options/allow USD,EUR,NOK + mysql -h "$$DB_SERVER" -P "$$DB_PORT" -u "$$DB_USER" -p"$$DB_PASSWORD" "$$DB_NAME" -e \ + "INSERT INTO $${DB_PREFIX}directory_currency_rate (currency_from, currency_to, rate) VALUES ('EUR', 'NOK', 11) ON DUPLICATE KEY UPDATE rate = VALUES(rate);" + bin/magento cache:flush +# End of E2E test setup + # GraphQL tests GRAPHQL_XML_DIST=${MAGENTO_ROOT}/vendor/adyen/module-payment/Test/phpunit_graphql.xml.dist GRAPHQL_XML=${MAGENTO_ROOT}/dev/tests/api-functional/phpunit_graphql.xml diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 94c008e91..7402600e7 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -114,6 +114,9 @@ jobs: if: ${{ env.EXPRESS_BRANCH }} run: docker exec -u www-data magento2-container make enable-express + - name: Setup E2E test configurations + run: docker exec magento2-container make setup-e2e + - name: Switch to production mode run: docker exec -u www-data magento2-container make production