22
22
env :
23
23
PSEUDO_REPO_FOLDER : ../magento_repo
24
24
magento_folder : ../magento2
25
+ MAGENTO_COMPOSER_REPO : " https://mirror.mage-os.org/"
25
26
26
27
jobs :
27
28
compute_matrix :
@@ -63,20 +64,26 @@ jobs:
63
64
key : setup-magento-ci | ${{ runner.os }} | ${{ matrix.magento }}
64
65
path : ${{ env.PSEUDO_STORE_FULL_PATH }}
65
66
66
- - run : composer create-project --repository-url="https://mirror.mage-os.org " "${{ matrix.magento }}" "${{ env.PSEUDO_REPO_FOLDER }}" --no-install
67
+ - run : composer create-project --repository-url="${{ env.MAGENTO_COMPOSER_REPO }} " "${{ matrix.magento }}" "${{ env.PSEUDO_REPO_FOLDER }}" --no-install
67
68
name : Create Store to simulate a real Magento store in a real repo.
68
69
if : steps.setup-magento-store-cache.outputs.cache-hit != 'true'
70
+ env :
71
+ COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
69
72
70
73
- uses : ./fix-magento-install
71
74
name : Fix Magento Out of Box Install Issues
72
75
with :
73
76
magento_directory : ${{ env.PSEUDO_REPO_FOLDER }}
74
77
if : steps.setup-magento-store-cache.outputs.cache-hit != 'true'
78
+ env :
79
+ COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
75
80
76
81
- run : composer install
77
82
shell : bash
78
83
working-directory : " ${{ env.PSEUDO_REPO_FOLDER }}"
79
84
if : steps.setup-magento-store-cache.outputs.cache-hit != 'true'
85
+ env :
86
+ COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
80
87
81
88
-
run :
git init && git config user.email "[email protected] " && git config user.name "Your Name" && git add . && git commit -m "init" && git clean -fdx
82
89
working-directory : " ${{ env.PSEUDO_REPO_FOLDER }}"
92
99
tools : composer:v${{ matrix.composer }}
93
100
mode : store
94
101
working-directory : ${{ env.magento_folder }}
102
+ composer_auth : ${{ secrets.COMPOSER_AUTH }}
95
103
96
104
- uses : graycoreio/github-actions-magento2/cache-magento@main
97
105
with :
@@ -102,6 +110,8 @@ jobs:
102
110
name : Composer install
103
111
shell : bash
104
112
working-directory : ${{ steps.setup-magento.outputs.path }}
113
+ env :
114
+ COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
105
115
106
116
setup-magento-extension :
107
117
runs-on : ubuntu-latest
@@ -115,6 +125,8 @@ jobs:
115
125
tools : composer:v2
116
126
mode : extension
117
127
magento_version : magento/project-community-edition:2.4.5-p1
128
+ magento_repository : ${{ env.MAGENTO_COMPOSER_REPO }}
129
+ composer_auth : ${{ secrets.COMPOSER_AUTH }}
118
130
119
131
- uses : graycoreio/github-actions-magento2/cache-magento@main
120
132
with :
@@ -125,3 +137,5 @@ jobs:
125
137
name : Composer install
126
138
shell : bash
127
139
working-directory : ${{ steps.setup-magento.outputs.path }}
140
+ env :
141
+ COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
0 commit comments