From d00591b5fd5b68aceac2a94a362a2a4f5fa520f6 Mon Sep 17 00:00:00 2001 From: Iman Aboheydary Date: Mon, 12 Feb 2024 12:09:20 +0100 Subject: [PATCH] Add unit tests, DEV-367 --- .github/workflows/unit-test.yml | 120 +++++++++++++++++++++++++++++--- 1 file changed, 112 insertions(+), 8 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 7b7ee6a..c100e50 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -1,20 +1,124 @@ name: ExtDN M2 Unit Tests on: [push] jobs: - unit-tests: - name: Magento 2 Unit Tests + unit-tests-2-4-4-p6-8-1: + name: Magento 2.4.4-p6 PHP 8.1 Integration Tests runs-on: ubuntu-latest env: MODULE_NAME: CustomGento_YouTubeNoCookie COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 steps: - uses: actions/checkout@v4 - - uses: extdn/github-actions-m2/magento-unit-tests/7.3@master + - uses: extdn/github-actions-m2/magento-unit-tests/8.1@master env: - MAGENTO_VERSION: '2.3.4' - - uses: extdn/github-actions-m2/magento-unit-tests/7.3@master + MAGENTO_VERSION: '2.4.4-p6' + integration-tests-2-4-4-p6-7-4: + name: Magento 2.4.4-p6 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/7.4@master + env: + MAGENTO_VERSION: '2.4.4-p6' + integration-tests-2-4-4-p5-7-4: + name: Magento 2.4.4-p5 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/7.4@master + env: + MAGENTO_VERSION: '2.4.4-p5' + integration-tests-2-4-4-p5-8-1: + name: Magento 2.4.4-p5 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/8.1@master + env: + MAGENTO_VERSION: '2.4.4-p5' + integration-tests-2-4-5-p5-8-1: + name: Magento 2.4.5-p5 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/8.1@master + env: + MAGENTO_VERSION: '2.4.5-p5' + integration-tests-2-4-5-p5-7-4: + name: Magento 2.4.5-p5 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/7.4@master env: - MAGENTO_VERSION: '2.3.5-p2' - - uses: extdn/github-actions-m2/magento-unit-tests/7.4@master + MAGENTO_VERSION: '2.4.5-p5' + integration-tests-2-4-5-p4-7-4: + name: Magento 2.4.5-p4 PHP 7.4 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/7.4@master + env: + MAGENTO_VERSION: '2.4.5-p4' + integration-tests-2-4-5-p4-8-1: + name: Magento 2.4.5-p4 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/8.1@master + env: + MAGENTO_VERSION: '2.4.5-p4' + integration-tests-2-4-6-p3-8-1: + name: Magento 2.4.6-p3 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/8.1@master + env: + MAGENTO_VERSION: '2.4.6-p3' + integration-tests-2-4-6-p3-8-2: + name: Magento 2.4.6-p3 PHP 8.2 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/8.2@master + env: + MAGENTO_VERSION: '2.4.6-p3' + integration-tests-2-4-6-p2-8-1: + name: Magento 2.4.6-p2 PHP 8.1 Integration Tests + runs-on: ubuntu-latest + env: + MODULE_NAME: CustomGento_YouTubeNoCookie + COMPOSER_NAME: customgento/module-youtube-no-cookie-m2 + steps: + - uses: actions/checkout@v4 + - uses: extdn/github-actions-m2/magento-integration-tests/8.1@master env: - MAGENTO_VERSION: '2.4.0' + MAGENTO_VERSION: '2.4.6-p2'