mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +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."
|
description: "Redis version to use."
|
||||||
|
|
||||||
run_memory_test:
|
run_memory_test:
|
||||||
|
type: 'boolean'
|
||||||
required: true
|
required: true
|
||||||
default: "0"
|
default: false
|
||||||
description: "Run Memory Test."
|
description: "Run Memory Test."
|
||||||
|
|
||||||
run_magento_integration_tests:
|
run_magento_integration_tests:
|
||||||
|
type: 'boolean'
|
||||||
required: true
|
required: true
|
||||||
default: "1"
|
default: false
|
||||||
description: "Run Magento Integration Tests."
|
description: "Run Magento Integration Tests."
|
||||||
|
|
||||||
run_magento_integration_tests_real_suite:
|
run_magento_integration_tests_real_suite:
|
||||||
|
type: 'boolean'
|
||||||
required: true
|
required: true
|
||||||
default: "1"
|
default: false
|
||||||
description: "Run Magento Integration Tests Real Suite."
|
description: "Run Magento Integration Tests Real Suite."
|
||||||
|
|
||||||
base_directory:
|
base_directory:
|
||||||
@@ -134,49 +137,49 @@ runs:
|
|||||||
cat ${CONFIG_FILE}
|
cat ${CONFIG_FILE}
|
||||||
|
|
||||||
- name: Run Memory Test
|
- name: Run Memory Test
|
||||||
if: ${{ inputs.run_memory_test == 1 }}
|
if: ${{ inputs.run_memory_test == 'true' }}
|
||||||
working-directory: ${{ inputs.base_directory }}
|
working-directory: ${{ inputs.base_directory }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
|
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
|
||||||
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
|
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
|
||||||
echo -e '\033[32mRun Memory Tests\033[0m'
|
echo -e '\033[32mRun Memory Tests\033[0m'
|
||||||
php ../../../vendor/bin/phpunit
|
php ../../../vendor/bin/phpunit \
|
||||||
--configuration phpunit.xml.dist
|
--configuration phpunit.xml.dist \
|
||||||
--coverage-clover=coverage.xml
|
--coverage-clover=coverage.xml \
|
||||||
--log-junit=test-results.xml
|
--log-junit=test-results.xml \
|
||||||
--coverage-html=coverage
|
--coverage-html=coverage \
|
||||||
--testsuite 'Memory Usage Tests'
|
--testsuite 'Memory Usage Tests'
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Run Magento Integration 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 }}
|
working-directory: ${{ inputs.base_directory }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
|
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
|
||||||
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
|
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
|
||||||
echo -e '\033[32mRun Magento Integration Tests\033[0m'
|
echo -e '\033[32mRun Magento Integration Tests\033[0m'
|
||||||
php ../../../vendor/bin/phpunit
|
php ../../../vendor/bin/phpunit \
|
||||||
--configuration phpunit.xml.dist
|
--configuration phpunit.xml.dist \
|
||||||
--coverage-clover=coverage.xml
|
--coverage-clover=coverage.xml \
|
||||||
--log-junit=test-results.xml
|
--log-junit=test-results.xml \
|
||||||
--coverage-html=coverage
|
--coverage-html=coverage \
|
||||||
--testsuite 'Magento Integration Tests'
|
--testsuite 'Magento Integration Tests'
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Run Magento Integration Tests Real Suite
|
- 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 }}
|
working-directory: ${{ inputs.base_directory }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
|
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
|
||||||
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
|
${WARDEN} env exec -T php-fpm /bin/bash -c "cd ./dev/tests/integration
|
||||||
echo -e '\033[32mRun Magento Integration Tests Real Suite\033[0m'
|
echo -e '\033[32mRun Magento Integration Tests Real Suite\033[0m'
|
||||||
php ../../../vendor/bin/phpunit
|
php ../../../vendor/bin/phpunit \
|
||||||
--configuration phpunit.xml.dist
|
--configuration phpunit.xml.dist \
|
||||||
--coverage-clover=coverage.xml
|
--coverage-clover=coverage.xml \
|
||||||
--log-junit=test-results.xml
|
--log-junit=test-results.xml \
|
||||||
--coverage-html=coverage
|
--coverage-html=coverage \
|
||||||
--testsuite 'Magento Integration Tests Real Suite'
|
--testsuite 'Magento Integration Tests Real Suite'
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user