Skip to content

Commit

Permalink
retry with php
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Feb 6, 2024
1 parent f00cad9 commit 1038d96
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,21 @@ jobs:
### Download our code in custom dir###
- uses: actions/checkout@v3
with:
path: magento/vendor/sequra/magento2-core
path: magento/app/code/Sequra/Core

- uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"

- name: 'launch magento2 unit test'
if: always()
uses: MAD-I-T/magento-actions@v3.25
- 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'
override_settings: 1
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
# Integrations tests
- name: "Run Integration tests"
Expand Down

0 comments on commit 1038d96

Please sign in to comment.