From 1281aba8b2e6e24d5ce7f1336a9c6aabe8dcae0c Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Wed, 8 May 2024 09:06:52 +0700 Subject: [PATCH 1/3] Create integration.yml --- .github/workflows/integration.yml | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..f20e9f1 --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,90 @@ +name: ExtDN M2 Integration Tests +on: [ push, pull_request ] + +jobs: + mage246: + name: Magento 2 Integration Tests (Magento v2.4.6) + runs-on: ubuntu-latest + services: + mysql: + image: mysql:8.0 + env: + MYSQL_ROOT_PASSWORD: root + ports: + - 3306:3306 + options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + es: + image: docker.io/wardenenv/elasticsearch:8.1 + ports: + - 9200:9200 + env: + 'discovery.type': single-node + 'xpack.security.enabled': false + ES_JAVA_OPTS: "-Xms64m -Xmx512m" + options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: + - uses: actions/checkout@v2 + - name: M2 Integration Tests with Magento 2 + uses: extdn/github-actions-m2/magento-integration-tests/8.2@master + with: + module_name: GhoSter_ChangeCustomerPassword + composer_name: ghoster/changecustomerpassword + ce_version: 2.4.6 + + mage244: + name: Magento 2 Integration Tests (Magento v2.4.4) + runs-on: ubuntu-latest + services: + mysql: + image: mysql:8.0 + env: + MYSQL_ROOT_PASSWORD: root + ports: + - 3306:3306 + options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + es: + image: docker.io/wardenenv/elasticsearch:7.16 + ports: + - 9200:9200 + env: + 'discovery.type': single-node + 'xpack.security.enabled': false + ES_JAVA_OPTS: "-Xms64m -Xmx512m" + options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: + - uses: actions/checkout@v2 + - name: M2 Integration Tests with Magento 2 + uses: extdn/github-actions-m2/magento-integration-tests/8.1@master + with: + module_name: GhoSter_ChangeCustomerPassword + composer_name: ghoster/changecustomerpassword + ce_version: 2.4.4 + + mage24: + name: Magento 2 Integration Tests (Magento v2.4.3) + runs-on: ubuntu-latest + services: + mysql: + image: mysql:8.0 + env: + MYSQL_ROOT_PASSWORD: root + ports: + - 3306:3306 + options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + es: + image: docker.io/wardenenv/elasticsearch:7.10 + ports: + - 9200:9200 + env: + 'discovery.type': single-node + 'xpack.security.enabled': false + ES_JAVA_OPTS: "-Xms64m -Xmx512m" + options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: + - uses: actions/checkout@v2 + - name: M2 Integration Tests with Magento 2 + uses: extdn/github-actions-m2/magento-integration-tests/7.4@master + with: + module_name: GhoSter_ChangeCustomerPassword + composer_name: ghoster/changecustomerpassword + ce_version: 2.4.3 From 36dc4b5e54b0063bca73e57c3c9cd1a063113cff Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Wed, 8 May 2024 09:07:42 +0700 Subject: [PATCH 2/3] Update coding-standard.yml --- .github/workflows/coding-standard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index 117ae58..885022d 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -10,5 +10,5 @@ jobs: name: M2 Coding Standard runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - uses: extdn/github-actions-m2/magento-coding-standard@master From 56f997709cf16c04702698fbad4acd237cec0d44 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Wed, 8 May 2024 09:09:09 +0700 Subject: [PATCH 3/3] Support PHP 8.3 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index eb9df5a..02a3a85 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "ghoster/changecustomerpassword", "description": "Change customer password from admin side like old fashion way Magento 1", "require": { - "php": "^7.3||^7.4||^8.1||^8.2" + "php": "~7.3.0||~7.4.0||~8.1.0||~8.2.0||~8.3.0" }, "authors": [ {