Skip to content

Commit

Permalink
Merge branch 'magento-2.4.0' of github.com:yireo/magento2-replace-gra…
Browse files Browse the repository at this point in the history
…phql into magento-2.4.0
  • Loading branch information
jissereitsma committed Jul 24, 2020
2 parents 321f181 + 8d97cd3 commit 1738154
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 1 deletion.
74 changes: 74 additions & 0 deletions .github/workflows/magento-installation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Magento installation
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
magento-installation:
name: Magento 2 Test Install
runs-on: ubuntu-latest
container: yireo/magento2base:7.3
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: magento2
ports:
- 3306:3306
options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: Composer preparation
env:
MAGENTO_MARKETPLACE_USERNAME: ${{ secrets.MAGENTO_MARKETPLACE_USERNAME }}
MAGENTO_MARKETPLACE_PASSWORD: ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }}
run: |
mkdir -p /tmp/m2 && cd /tmp/m2
composer global config http-basic.repo.magento.com $MAGENTO_MARKETPLACE_USERNAME $MAGENTO_MARKETPLACE_PASSWORD
- name: Creating Magento composer project
run: |
MAGENTO_VERSION=`cat ${GITHUB_WORKSPACE}/.github/workflows/magento_version.txt`
test -z "$MAGENTO_VERSION" && exit 1
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition:${MAGENTO_VERSION} /tmp/m2 --no-install --no-interaction --no-progress
- name: Setup local composer package
env:
COMPOSER_NAME: ${{ secrets.COMPOSER_NAME }}
run: |
MAGENTO_VERSION=`cat ${GITHUB_WORKSPACE}/.github/workflows/magento_version.txt`
BRANCH=magento-${MAGENTO_VERSION/-p*/}
test -z "$MAGENTO_VERSION" && exit 1
cd /tmp/m2
ln -s ${GITHUB_WORKSPACE} local-source
composer config preferred-install source
composer config minimum-stability dev
composer config repositories.remote-source vcs [email protected]:${COMPOSER_NAME}.git
composer config repositories.local-source path local-source/
echo "Installing ${COMPOSER_NAME}:dev-${BRANCH}"
composer require ${COMPOSER_NAME}:dev-${BRANCH} --no-update --no-interaction
- name: Composer installation
run: |
cd /tmp/m2
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source --no-interaction --no-progress --no-suggest --no-dev
- name: Magento installation
run: |
cd /tmp/m2
php -d memory_limit=2G bin/magento setup:install --base-url=http://magento2.test/ \
--db-host=mysql --db-name=magento2 \
--db-user=root --db-password=root \
--admin-firstname=John --admin-lastname=Doe \
[email protected] \
--admin-user=johndoe --admin-password=johndoe!1234 \
--backend-frontname=admin --language=en_US \
--currency=USD --timezone=Europe/Amsterdam --cleanup-database \
--sales-order-increment-prefix="ORD$" --session-save=db \
--use-rewrites=1
- name: Magento compilation
run: |
cd /tmp/m2
php -d memory_limit=2G bin/magento setup:di:compile
- name: Additional checks
run: |
cd /tmp/m2
bin/magento module:status
1 change: 1 addition & 0 deletions .github/workflows/magento_version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.5-p1
45 changes: 44 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
{
"name": "yireo/magento2-replace-graphql",
"description":"Please see specific branches instead"
"require": {
"magento/product-community-edition": "~2.4.0"
},
"replace": {
"magento/module-authorizenet-graph-ql":"*",
"magento/module-braintree-graph-ql":"*",
"magento/module-bundle-graph-ql": "*",
"magento/module-catalog-graph-ql": "*",
"magento/module-catalog-cms-graph-ql":"*",
"magento/module-catalog-customer-ql": "*",
"magento/module-catalog-customer-graph-ql":"*",
"magento/module-catalog-inventory-graph-ql": "*",
"magento/module-catalog-url-rewrite-graph-ql": "*",
"magento/module-checkout-agreements-graph-ql":"*",
"magento/module-cms-graph-ql": "*",
"magento/module-cms-url-rewrite-graph-ql": "*",
"magento/module-configurable-product-graph-ql": "*",
"magento/module-customer-balance-graph-ql": "*",
"magento/module-customer-downloadable-graph-ql":"*",
"magento/module-customer-graph-ql": "*",
"magento/module-directory-graph-ql": "*",
"magento/module-downloadable-graph-ql": "*",
"magento/module-eav-graph-ql": "*",
"magento/module-gift-card-account-graph-ql": "*",
"magento/module-gift-card-graph-ql": "*",
"magento/module-graph-ql": "*",
"magento/module-graph-ql-cache": "*",
"magento/module-grouped-product-graph-ql": "*",
"magento/module-quote-graph-ql": "*",
"magento/module-paypal-graph-ql": "*",
"magento/module-related-product-graph-ql":"*",
"magento/module-reward-graph-ql": "*",
"magento/module-rma-graph-ql": "*",
"magento/module-sales-graph-ql": "*",
"magento/module-send-friend-graph-ql": "*",
"magento/module-store-graph-ql": "*",
"magento/module-swatches-graph-ql": "*",
"magento/module-tax-graph-ql": "*",
"magento/module-theme-graph-ql": "*",
"magento/module-url-rewrite-graph-ql": "*",
"magento/module-vault-graph-ql": "*",
"magento/module-weee-graph-ql": "*",
"magento/module-wishlist-graph-ql": "*"
}
}

0 comments on commit 1738154

Please sign in to comment.