mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
Fixes for integration tests execution action (#179)
* Fix integration tests execution config 🙈
* Change input types for running tests to boolean
* Change input types
This commit is contained in:
committed by
GitHub
parent
6a08e4f15b
commit
ed82ffa437
@@ -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:
|
||||
@@ -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'
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user