Skip to content

Commit

Permalink
Switch back to generic composer (v2?)
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jan 12, 2022
1 parent b2ee77c commit 99b56b6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/magento-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
MAGENTO_MARKETPLACE_PASSWORD: ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }}
run: |
mkdir -p /tmp/m2 && cd /tmp/m2
composer2 global config http-basic.repo.magento.com $MAGENTO_MARKETPLACE_USERNAME $MAGENTO_MARKETPLACE_PASSWORD
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
composer2 create-project --repository=https://repo.magento.com/ magento/project-community-edition:${MAGENTO_VERSION} /tmp/m2 --no-install --no-interaction --no-progress
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 }}
Expand All @@ -45,16 +45,16 @@ jobs:
test -z "$MAGENTO_VERSION" && exit 1
cd /tmp/m2
ln -s ${GITHUB_WORKSPACE} local-source
composer2 config preferred-install source
composer2 config minimum-stability dev
composer2 config repositories.remote-source vcs [email protected]:${COMPOSER_NAME}.git
composer2 config repositories.local-source path 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}"
composer2 require ${COMPOSER_NAME}:dev-${BRANCH} --no-update --no-interaction
composer require ${COMPOSER_NAME}:dev-${BRANCH} --no-update --no-interaction
- name: Composer installation
run: |
cd /tmp/m2
COMPOSER_MEMORY_LIMIT=-1 composer2 install --prefer-source --no-interaction --no-progress --no-dev
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source --no-interaction --no-progress --no-dev
- name: Magento installation
run: |
cd /tmp/m2
Expand Down

0 comments on commit 99b56b6

Please sign in to comment.