Skip to content

Commit

Permalink
New unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Jan 11, 2024
1 parent 5f32402 commit 0bbfff8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bbfff8

Please sign in to comment.