|
8 | 8 | workflow_dispatch: |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - test-opensearch-247: |
12 | | - name: Magento ${{ matrix.magento-version }} with PHP ${{ matrix.php-version }} (OpenSearch) Test |
| 11 | + magento-compatibility-matrix: |
| 12 | + name: Magento ${{ matrix.magento-version }} with PHP ${{ matrix.php-version }} |
13 | 13 | runs-on: ubuntu-latest |
14 | 14 | strategy: |
15 | 15 | fail-fast: false |
16 | 16 | matrix: |
17 | 17 | include: |
18 | | - - magento-version: "2.4.7" |
| 18 | + - magento-version: "2.4.6-p14" |
19 | 19 | php-version: "8.3" |
20 | 20 | search-engine-name: "opensearch" |
21 | | - - magento-version: "2.4.7-p9" |
| 21 | + - magento-version: "2.4.7-p6" |
22 | 22 | php-version: "8.3" |
23 | 23 | search-engine-name: "opensearch" |
| 24 | + - magento-version: "2.4.8-p4" |
| 25 | + php-version: "8.4" |
| 26 | + search-engine-name: "opensearch" |
| 27 | + - magento-version: "2.4.9-beta1" |
| 28 | + php-version: "8.4" |
| 29 | + search-engine-name: "opensearch" |
24 | 30 |
|
25 | 31 | services: |
26 | 32 | mysql: |
@@ -71,144 +77,6 @@ jobs: |
71 | 77 | run: | |
72 | 78 | curl -s http://localhost:9200/_cluster/health |
73 | 79 |
|
74 | | - - name: Install Magento |
75 | | - working-directory: magento2 |
76 | | - env: |
77 | | - COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} |
78 | | - run: | |
79 | | - composer config minimum-stability stable |
80 | | - composer config prefer-stable true |
81 | | - composer install --no-interaction --no-progress |
82 | | - bin/magento setup:install \ |
83 | | - --base-url=http://localhost \ |
84 | | - --db-host=127.0.0.1 \ |
85 | | - --db-name=magento \ |
86 | | - --db-user=root \ |
87 | | - --db-password=magento \ |
88 | | - --admin-firstname=Admin \ |
89 | | - --admin-lastname=User \ |
90 | | - --admin-email=admin@example.com \ |
91 | | - --admin-user=admin \ |
92 | | - --admin-password=admin12345 \ |
93 | | - --language=en_US \ |
94 | | - --currency=USD \ |
95 | | - --timezone=Europe/Berlin \ |
96 | | - --use-rewrites=1 \ |
97 | | - --backend-frontname=admin \ |
98 | | - --search-engine=${{ matrix.search-engine-name }} \ |
99 | | - --opensearch-host=localhost \ |
100 | | - --opensearch-port=9200 \ |
101 | | - --opensearch-index-prefix=magento \ |
102 | | - --cleanup-database |
103 | | -
|
104 | | - - name: Install MageForge Module from current commit |
105 | | - working-directory: magento2 |
106 | | - run: | |
107 | | - # Add a local repository pointing to the current code |
108 | | - composer config repositories.mageforge-local path ../mageforge |
109 | | -
|
110 | | - # Install the module from the local repository |
111 | | - composer require --no-update openforgeproject/mageforge:@dev |
112 | | -
|
113 | | - # Update dependencies |
114 | | - composer update openforgeproject/mageforge --with-dependencies |
115 | | -
|
116 | | - # Enable the module and run setup upgrade |
117 | | - bin/magento module:enable OpenForgeProject_MageForge |
118 | | - bin/magento setup:upgrade |
119 | | -
|
120 | | - - name: Check Module Commands |
121 | | - working-directory: magento2 |
122 | | - run: | |
123 | | - echo "Check if module is enabled:" |
124 | | - bin/magento module:status | grep OpenForgeProject_MageForge |
125 | | -
|
126 | | - echo "Check if MageForge commands are registered:" |
127 | | - bin/magento list | grep mageforge |
128 | | -
|
129 | | - echo "Verify all commands have --help available:" |
130 | | - bin/magento mageforge:system:version --help |
131 | | - bin/magento mageforge:system:check --help |
132 | | - bin/magento mageforge:theme:list --help |
133 | | - bin/magento mageforge:theme:build --help |
134 | | - bin/magento mageforge:theme:watch --help |
135 | | - bin/magento mageforge:theme:clean --help |
136 | | - bin/magento mageforge:theme:inspector --help |
137 | | - bin/magento mageforge:hyva:compatibility:check --help |
138 | | - bin/magento mageforge:hyva:tokens --help |
139 | | -
|
140 | | - echo "Verify command aliases work:" |
141 | | - bin/magento m:s:v --help |
142 | | - bin/magento m:s:c --help |
143 | | - bin/magento m:t:l --help |
144 | | - bin/magento m:t:b --help |
145 | | - bin/magento m:t:w --help |
146 | | - bin/magento m:t:c --help |
147 | | - bin/magento m:h:c:c --help |
148 | | - bin/magento frontend:list --help |
149 | | - bin/magento frontend:build --help |
150 | | - bin/magento frontend:watch --help |
151 | | - bin/magento frontend:clean --help |
152 | | - bin/magento hyva:check --help |
153 | | - bin/magento hyva:tokens --help |
154 | | -
|
155 | | - - name: Test Summary |
156 | | - run: | |
157 | | - echo "MageForge module compatibility test with Magento ${{ matrix.magento-version }} completed" |
158 | | -
|
159 | | - test-opensearch: |
160 | | - name: Magento 2.4.8 with PHP 8.4 Test |
161 | | - runs-on: ubuntu-latest |
162 | | - |
163 | | - services: |
164 | | - mysql: |
165 | | - image: mysql:8.0 |
166 | | - env: |
167 | | - MYSQL_ROOT_PASSWORD: magento |
168 | | - MYSQL_DATABASE: magento |
169 | | - ports: |
170 | | - - 3306:3306 |
171 | | - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 |
172 | | - |
173 | | - opensearch: |
174 | | - image: opensearchproject/opensearch:2.11.0 |
175 | | - ports: |
176 | | - - 9200:9200 |
177 | | - env: |
178 | | - discovery.type: single-node |
179 | | - plugins.security.disabled: true |
180 | | - OPENSEARCH_JAVA_OPTS: -Xms512m -Xmx512m |
181 | | - options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10 |
182 | | - |
183 | | - steps: |
184 | | - - name: Checkout code |
185 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
186 | | - with: |
187 | | - path: mageforge |
188 | | - |
189 | | - - name: Setup PHP |
190 | | - uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 |
191 | | - with: |
192 | | - php-version: "8.4" |
193 | | - extensions: mbstring, intl, gd, xml, soap, zip, bcmath, pdo_mysql, curl, sockets |
194 | | - tools: composer:v2 |
195 | | - |
196 | | - - name: Cache Composer packages |
197 | | - id: composer-cache |
198 | | - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 |
199 | | - with: |
200 | | - path: ~/.composer/cache/files |
201 | | - key: ${{ runner.os }}-composer-2.4.8-${{ hashFiles('**/composer.json') }} |
202 | | - restore-keys: ${{ runner.os }}-composer-2.4.8 |
203 | | - |
204 | | - - name: Clone Magento |
205 | | - run: | |
206 | | - git clone --depth=1 --branch=2.4.8 https://github.com/magento/magento2.git magento2 |
207 | | -
|
208 | | - - name: Check Search Engine status |
209 | | - run: | |
210 | | - curl -s http://localhost:9200/_cluster/health |
211 | | -
|
212 | 80 | - name: Install Magento |
213 | 81 | working-directory: magento2 |
214 | 82 | env: |
|
0 commit comments