From 0bbfff80fe190e9af189b78e96d804e64223e9c2 Mon Sep 17 00:00:00 2001 From: Mikel Martin Date: Thu, 11 Jan 2024 15:36:04 +0100 Subject: [PATCH] New unit tests --- .github/workflows/main.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6d89616..7954518 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,17 +62,16 @@ jobs: with: php-version: "8.2" - # - name: 'Alternative unit test' - # working-directory: magento - # env: - # COMPOSER_AUTH: ${{ steps.composer_auth.outputs.auth }} - # run: | - # rm -rf app/code/Sequra/Core - # vendor/bin/composer config minimum-stability dev - # vendor/bin/composer config repositories.sequra/magento2-core vcs git@github.com:sequra/magento2-core.git - # vendor/bin/composer require sequra/magento2-core:"dev-${{ steps.extract_branch.outputs.branch }}" --ignore-platform-reqs - # vendor/bin/phpunit --bootstrap app/bootstrap.php vendor/sequra/magento2-core/Test/Unit - + - 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 + # - name: 'launch magento2 unit test' # if: always() # uses: MAD-I-T/magento-actions@v3.25