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' "