From ed82ffa437bf64e08c5d5b55d30b6e26e5ef6dce Mon Sep 17 00:00:00 2001 From: Vladyslav Podorozhnyi Date: Sun, 12 Nov 2023 15:30:45 +0100 Subject: [PATCH] Fixes for integration tests execution action (#179) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix integration tests execution config 🙈 * Change input types for running tests to boolean * Change input types --- warden/integration-tests/action.yml | 45 +++++++++++++++-------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/warden/integration-tests/action.yml b/warden/integration-tests/action.yml index 5673d57..e6c3b64 100644 --- a/warden/integration-tests/action.yml +++ b/warden/integration-tests/action.yml @@ -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' "