Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions warden/integration-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ inputs:
description: "Redis version to use."

run_memory_test:
type: 'boolean'
required: true
default: "0"
default: false
description: "Run Memory Test."

run_magento_integration_tests:
type: 'boolean'
required: true
default: "1"
default: false
description: "Run Magento Integration Tests."

run_magento_integration_tests_real_suite:
type: 'boolean'
required: true
default: "1"
default: false
description: "Run Magento Integration Tests Real Suite."

base_directory:
Expand Down Expand Up @@ -134,49 +137,49 @@ runs:
cat ${CONFIG_FILE}

- name: Run Memory Test
if: ${{ inputs.run_memory_test == 1 }}
if: ${{ inputs.run_memory_test == 'true' }}
working-directory: ${{ inputs.base_directory }}
shell: bash
run: |
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
echo -e '\033[32mRun Memory Tests\033[0m'
php ../../../vendor/bin/phpunit
--configuration phpunit.xml.dist
--coverage-clover=coverage.xml
--log-junit=test-results.xml
--coverage-html=coverage
php ../../../vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--coverage-clover=coverage.xml \
--log-junit=test-results.xml \
--coverage-html=coverage \
--testsuite 'Memory Usage Tests'
"

- name: Run Magento Integration Tests
if: ${{ inputs.run_magento_integration_tests == 1 }}
if: ${{ inputs.run_magento_integration_tests == 'true' }}
working-directory: ${{ inputs.base_directory }}
shell: bash
run: |
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
echo -e '\033[32mRun Magento Integration Tests\033[0m'
php ../../../vendor/bin/phpunit
--configuration phpunit.xml.dist
--coverage-clover=coverage.xml
--log-junit=test-results.xml
--coverage-html=coverage
php ../../../vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--coverage-clover=coverage.xml \
--log-junit=test-results.xml \
--coverage-html=coverage \
--testsuite 'Magento Integration Tests'
"

- name: Run Magento Integration Tests Real Suite
if: ${{ inputs.run_magento_integration_tests_real_suite == 1 }}
if: ${{ inputs.run_magento_integration_tests_real_suite == 'true' }}
working-directory: ${{ inputs.base_directory }}
shell: bash
run: |
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
echo -e '\033[32mRun Magento Integration Tests Real Suite\033[0m'
php ../../../vendor/bin/phpunit
--configuration phpunit.xml.dist
--coverage-clover=coverage.xml
--log-junit=test-results.xml
--coverage-html=coverage
php ../../../vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--coverage-clover=coverage.xml \
--log-junit=test-results.xml \
--coverage-html=coverage \
--testsuite 'Magento Integration Tests Real Suite'
"