Skip to content

Commit 5667166

Browse files
committed
Fix Magento 2 Integration Tests
1 parent 19d98fe commit 5667166

3 files changed

Lines changed: 45 additions & 15 deletions

File tree

.github/workflows/integration.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [ push, pull_request ]
44
jobs:
55
mage247:
66
name: Magento 2 Integration Tests (Magento v2.4.7)
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-22.04
88
services:
99
mysql:
1010
image: mysql:8.0
@@ -33,7 +33,7 @@ jobs:
3333

3434
mage246:
3535
name: Magento 2 Integration Tests (Magento v2.4.6)
36-
runs-on: ubuntu-latest
36+
runs-on: ubuntu-22.04
3737
services:
3838
mysql:
3939
image: mysql:8.0
@@ -62,7 +62,7 @@ jobs:
6262

6363
mage244:
6464
name: Magento 2 Integration Tests (Magento v2.4.4)
65-
runs-on: ubuntu-latest
65+
runs-on: ubuntu-22.04
6666
services:
6767
mysql:
6868
image: mysql:8.0
@@ -88,3 +88,32 @@ jobs:
8888
module_name: GhoSter_OutOfStockAtLast
8989
composer_name: ghoster/module-outofstockatlast
9090
ce_version: 2.4.4
91+
92+
mage24:
93+
name: Magento 2 Integration Tests (Magento v2.4.3)
94+
runs-on: ubuntu-22.04
95+
services:
96+
mysql:
97+
image: mysql:8.0
98+
env:
99+
MYSQL_ROOT_PASSWORD: root
100+
ports:
101+
- 3306:3306
102+
options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
103+
es:
104+
image: docker.io/wardenenv/elasticsearch:7.10
105+
ports:
106+
- 9200:9200
107+
env:
108+
'discovery.type': single-node
109+
'xpack.security.enabled': false
110+
ES_JAVA_OPTS: "-Xms64m -Xmx512m"
111+
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
112+
steps:
113+
- uses: actions/checkout@v2
114+
- name: M2 Integration Tests with Magento 2
115+
uses: extdn/github-actions-m2/magento-integration-tests/7.4@master
116+
with:
117+
module_name: GhoSter_OutOfStockAtLast
118+
composer_name: ghoster/module-outofstockatlast
119+
ce_version: 2.4.3

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,24 @@
1818
- Sort Out Of Stock Product At last the product list
1919
- Compatibility with `smile/elasticsuite^2.11`
2020
- Firstly `Display Out of Stock Products` from `Stores > Configuration > Catalog > Inventory > Stock Options` must be set `Yes`
21-
- Of course, we are talking about Elastic Search. We don't support **old search engine**
21+
- Of course, we are talking about ElasticSearch or OpenSearch. We don't support **old search engine**
2222
- From time to time we remind you **Reindexing after you enable the module**
2323

2424

2525
## Compatibility
2626

2727
| Magento Version (Open Source/Commerce) | Elasticsearch | OpenSearch | ElasticSuite | Supported |
28-
| -------------------------------------- | ------------- | ---------- | ------------ | --------- |
29-
| **2.0.x** | 2.x | - | 2.1.x | No ❌ |
30-
| **2.1.x** | 2.x & 5.x | - | 2.3.x | No ❌ |
31-
| **2.2.x** | 5.x & 6.x | - | 2.6.x | No ❌ |
32-
| **<2.3.2** | 5.x & 6.x | - | 2.8.4 | No ❌ |
33-
| **<2.3.5** | 5.x & 6.x | - | 2.8.x | No ❌ |
34-
| **>=2.3.5** | 6.x & 7.x | - | 2.9.x | No ❌ |
35-
| **2.4.0** | 6.x & 7.x | - | 2.10.1 | Yes ✔️ |
36-
| **>=2.4.1 && < 2.4.6** | 6.x & 7.x | - | 2.10.x | Yes ✔️ |
37-
| **>=2.4.6** | 7.x & 8.x | 1.x & 2.x | >=2.11.x | Yes ✔️ |
28+
|--------------------------------------|---------------|------------|--------------| --------- |
29+
| **2.0.x** | 2.x | - | 2.1.x | No ❌ |
30+
| **2.1.x** | 2.x & 5.x | - | 2.3.x | No ❌ |
31+
| **2.2.x** | 5.x & 6.x | - | 2.6.x | No ❌ |
32+
| **<2.3.2** | 5.x & 6.x | - | 2.8.4 | No ❌ |
33+
| **<2.3.5** | 5.x & 6.x | - | 2.8.x | No ❌ |
34+
| **>=2.3.5** | 6.x & 7.x | - | 2.9.x | No ❌ |
35+
| **2.4.0** | 6.x & 7.x | - | 2.10.1 | Yes ✔️ |
36+
| **>=2.4.1 && < 2.4.6** | 6.x & 7.x | - | 2.10.x | Yes ✔️ |
37+
| **>=2.4.6 && < 2.4.8 | 7.x & 8.x | 1.x & 2.x | >=2.11.x | Yes ✔️ |
38+
| **>=2.4.8** | - | 3.x | >=2.11.13 | Yes ✔️ |
3839

3940

4041

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ghoster/module-outofstockatlast",
33
"description": "Magento 2.4.x module Sort Out Of Stock Product At last the product list",
44
"require": {
5-
"php": ">=8.1.0",
5+
"php": ">=7.4",
66
"magento/framework": ">=102.0.0"
77
},
88
"minimum-stability": "stable",

0 commit comments

Comments
 (0)