From c349db8d2af569409ab3a1b732f2f5efc72db601 Mon Sep 17 00:00:00 2001 From: Mikel Martin Date: Tue, 6 Feb 2024 19:13:28 +0100 Subject: [PATCH] retry with php --- .github/workflows/main.yml | 47 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e4c196..b3f8610 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,21 +47,7 @@ jobs: ### Download our code in custom dir### - uses: actions/checkout@v3 with: - path: magento/app/code/Sequra/Core - - # - uses: "shivammathur/setup-php@v2" - # with: - # php-version: "8.2" - - # - name: 'Unit test' - # working-directory: magento/app/code/Sequra/Core - # env: - # COMPOSER_AUTH: ${{ steps.composer_auth.outputs.auth }} - # run: | - # ../../../../vendor/bin/composer install - # PAT="s/\/REAL-PATH-TO-MAGENTO-ROOT/..\/..\/..\/../g" - # sed -e $PAT Test/autoload_sample.php > Test/autoload.php - # ../../../../vendor/bin/phpunit -c Test/phpunit.xml Test/Unit + path: vendor/sequra/magento2-core - name: 'install fresh magento repo' uses: MAD-I-T/magento-actions@v3.25 @@ -72,16 +58,31 @@ jobs: magento_version: ${{ matrix.magento_version }} no_push: 1 ## add this arg to not push to the repo ideal for quick test on specific version - - name: 'launch magento2 unit test' - if: always() - uses: MAD-I-T/magento-actions@v3.25 + - uses: "shivammathur/setup-php@v2" + with: + php-version: "8.2" + + - name: 'Unit test' + working-directory: magento/app/code/Sequra/Core env: COMPOSER_AUTH: ${{ steps.composer_auth.outputs.auth }} - with: - process: 'unit-test' - unit_test_subset_path: 'vendor/sequra/magento2-core/Test/Unit' - unit_test_config: 'vendor/sequra/magento2-core/Test/Unit/phpunit.xml.dist' - magento_version: ${{ matrix.magento_version }} + run: | + ../../../vendor/bin/composer install + PAT="s/\/REAL-PATH-TO-MAGENTO-ROOT/..\/..\/../g" + sed -e $PAT Test/autoload_sample.php > Test/autoload.php + ../../../vendor/bin/phpunit -c Test/phpunit.xml Test/Unit + + + # - name: 'launch magento2 unit test' + # if: always() + # uses: MAD-I-T/magento-actions@v3.25 + # env: + # COMPOSER_AUTH: ${{ steps.composer_auth.outputs.auth }} + # with: + # process: 'unit-test' + # unit_test_subset_path: 'vendor/sequra/magento2-core/Test/Unit' + # unit_test_config: 'vendor/sequra/magento2-core/Test/Unit/phpunit.xml.dist' + # magento_version: ${{ matrix.magento_version }} # Integrations tests - name: "Run Integration tests"