From 4b773836fed8c50fc9db64d8230ce432058d15aa Mon Sep 17 00:00:00 2001 From: Rana Muhammad Irshad Date: Wed, 31 Jan 2024 13:57:51 +0100 Subject: [PATCH] Update github actions, DEV-368 --- .github/workflows/coding-standard.yml | 8 +- .github/workflows/integration.yml | 342 ++++++++++++++++++++++---- .github/workflows/mess-detector.yml | 8 +- .github/workflows/phpstan.yml | 8 +- 4 files changed, 306 insertions(+), 60 deletions(-) diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index dc1815a..fa358ed 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -1,14 +1,10 @@ name: ExtDN M2 Coding Standard -on: - push: - branches: - - main - pull_request: +on: [push, pull_request] jobs: static: name: M2 Coding Standard runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: extdn/github-actions-m2/magento-coding-standard@master diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3732396..c102be9 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,13 +1,8 @@ name: ExtDN M2 Integration Tests -on: - push: - branches: - - main - pull_request: - +on: [ push, pull_request ] jobs: - integration-tests: - name: Magento 2 Integration Tests + integration-tests-2-4-4-p6-8-1: + name: Magento 2.4.4-p6 PHP 8.1 Integration Tests runs-on: ubuntu-latest services: mysql: @@ -27,67 +22,330 @@ jobs: 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 Version 2.4.4-p3 (PHP 7.4) - uses: extdn/github-actions-m2/magento-integration-tests/7.4@master + - uses: actions/checkout@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.4-p6 (PHP 8.1) + uses: extdn/github-actions-m2/magento-integration-tests/8.1@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.4-p3' + ce_version: '2.4.4-p6' composer_version: '2' - - uses: actions/checkout@v2 - - name: M2 Integration Tests with Magento 2 Version 2.4.4-p3 (PHP 8.1) - uses: extdn/github-actions-m2/magento-integration-tests/8.1@master + integration-tests-2-4-4-p6-7-4: + name: Magento 2.4.4-p6 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.4-p6 (PHP 7.4) + uses: extdn/github-actions-m2/magento-integration-tests/7.4@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.4-p3' + ce_version: '2.4.4-p6' composer_version: '2' - - uses: actions/checkout@v2 - - name: M2 Integration Tests with Magento 2 Version 2.4.4-p4 (PHP 7.4) + integration-tests-2-4-4-p5-7-4: + name: Magento 2.4.4-p5 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.4-p5 (PHP 7.4) uses: extdn/github-actions-m2/magento-integration-tests/7.4@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.4-p4' + ce_version: '2.4.4-p5' composer_version: '2' - - uses: actions/checkout@v2 - - name: M2 Integration Tests with Magento 2 Version 2.4.4-p4 (PHP 8.1) + integration-tests-2-4-4-p5-8-1: + name: Magento 2.4.4-p5 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.4-p5 (PHP 8.1) uses: extdn/github-actions-m2/magento-integration-tests/8.1@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.4-p4' + ce_version: '2.4.4-p5' composer_version: '2' - - uses: actions/checkout@v2 - - name: M2 Integration Tests with Magento 2 Version 2.4.5-p2 (PHP 8.1) + integration-tests-2-4-5-p5-8-1: + name: Magento 2.4.5-p5 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.5-p5 (PHP 8.1) uses: extdn/github-actions-m2/magento-integration-tests/8.1@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.5-p2' + ce_version: '2.4.5-p5' composer_version: '2' - - uses: actions/checkout@v2 - - name: M2 Integration Tests with Magento 2 Version 2.4.5-p3 (PHP 8.1) + integration-tests-2-4-5-p5-7-4: + name: Magento 2.4.5-p5 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.5-p5 (PHP 7.4) + uses: extdn/github-actions-m2/magento-integration-tests/7.4@master + with: + module_name: CustomGento_Koality + composer_name: customgento/module-koality-m2 + ce_version: '2.4.5-p5' + composer_version: '2' + integration-tests-2-4-5-p4-7-4: + name: Magento 2.4.5-p4 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.5-p4 (PHP 7.4) + uses: extdn/github-actions-m2/magento-integration-tests/7.4@master + with: + module_name: CustomGento_Koality + composer_name: customgento/module-koality-m2 + ce_version: '2.4.5-p4' + composer_version: '2' + integration-tests-2-4-5-p4-8-1: + name: Magento 2.4.5-p4 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.5-p4 (PHP 8.1) uses: extdn/github-actions-m2/magento-integration-tests/8.1@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.5-p3' + ce_version: '2.4.5-p4' composer_version: '2' - - uses: actions/checkout@v2 - - name: M2 Integration Tests with Magento 2 Version 2.4.6 (PHP 8.1) + integration-tests-2-4-6-p3-8-1: + name: Magento 2.4.6-p3 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.6-p3 (PHP 8.1) uses: extdn/github-actions-m2/magento-integration-tests/8.1@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.6' + ce_version: '2.4.6-p3' composer_version: '2' - - uses: actions/checkout@v2 - - name: M2 Integration Tests with Magento 2 Version 2.4.6-p1 (PHP 8.1) + integration-tests-2-4-6-p3-8-2: + name: Magento 2.4.6-p3 PHP 8.2 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.6-p3 (PHP 8.2) + uses: extdn/github-actions-m2/magento-integration-tests/8.2@master + with: + module_name: CustomGento_Koality + composer_name: customgento/module-koality-m2 + ce_version: '2.4.6-p3' + composer_version: '2' + integration-tests-2-4-6-p2-8-2: + name: Magento 2.4.6-p2 PHP 8.2 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.6-p2 (PHP 8.2) + uses: extdn/github-actions-m2/magento-integration-tests/8.2@master + with: + module_name: CustomGento_Koality + composer_name: customgento/module-koality-m2 + ce_version: '2.4.6-p2' + composer_version: '2' + integration-tests-2-4-6-p2-8-1: + name: Magento 2.4.6-p2 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + services: + mysql: + image: mysql:5.7 + 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.8 + 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@v4 + - name: M2 Integration Tests with Magento 2 Version 2.4.6-p2 (PHP 8.1) uses: extdn/github-actions-m2/magento-integration-tests/8.1@master with: - module_name: Koality_MagentoPlugin + module_name: CustomGento_Koality composer_name: customgento/module-koality-m2 - ce_version: '2.4.6-p1' + ce_version: '2.4.6-p2' composer_version: '2' diff --git a/.github/workflows/mess-detector.yml b/.github/workflows/mess-detector.yml index ed498b4..23e9417 100644 --- a/.github/workflows/mess-detector.yml +++ b/.github/workflows/mess-detector.yml @@ -1,14 +1,10 @@ name: ExtDN M2 Mess Detector -on: - push: - branches: - - main - pull_request: +on: [push, pull_request] jobs: phpmd: name: M2 Mess Detector runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: extdn/github-actions-m2/magento-mess-detector@master diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 9375583..2dd8315 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -1,16 +1,12 @@ name: ExtDN M2 PHPStan -on: - push: - branches: - - main - pull_request: +on: [push, pull_request] jobs: phpstan: name: M2 PHPStan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: extdn/github-actions-m2/magento-phpstan@master with: composer_name: customgento/module-koality-m2