Skip to content

Commit 5b213b8

Browse files
committed
fix: update Magento download method and config
1 parent 15a7ecb commit 5b213b8

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ jobs:
5656
key: ${{ runner.os }}-composer-2.4.8-${{ hashFiles('**/composer.json') }}
5757
restore-keys: ${{ runner.os }}-composer-2.4.8
5858

59-
- name: Clone Magento
59+
- name: Download Magento
6060
run: |
61-
git clone --depth=1 --branch=2.4.8 https://github.com/magento/magento2.git magento2
61+
composer create-project \
62+
--repository-url=https://mirror.mage-os.org/ \
63+
magento/project-community-edition \
64+
magento2
6265
6366
- name: Install Magento
6467
working-directory: magento2
@@ -93,6 +96,9 @@ jobs:
9396
- name: Install MageForge Module and PHPStan
9497
working-directory: magento2
9598
run: |
99+
# Disable packagist
100+
composer config repo.packagist.org false
101+
96102
# Add local repository
97103
composer config repositories.mageforge-local path ../mageforge
98104
@@ -109,7 +115,6 @@ jobs:
109115
composer update --with-dependencies
110116
111117
# Enable module
112-
bin/magento module:enable OpenForgeProject_MageForge
113118
bin/magento setup:upgrade
114119
115120
- name: Run PHPStan

0 commit comments

Comments
 (0)