-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch back to generic composer (v2?)
- Loading branch information
1 parent
b2ee77c
commit 99b56b6
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 | ||
|