diff --git a/.github/workflows/run-php-src-tests.ps1 b/.github/workflows/run-php-src-tests.ps1 index cce86aa1..879d6c9e 100755 --- a/.github/workflows/run-php-src-tests.ps1 +++ b/.github/workflows/run-php-src-tests.ps1 @@ -5,6 +5,7 @@ $PSNativeCommandUseErrorActionPreference = $true if ( "${env:GITHUB_WORKSPACE}" -Eq "" ) { Write-Host "This script is intended to run in GitHub Actions environment only." + Write-Host "It's dangerous and meaningless in other environments." exit 1 } @@ -99,8 +100,12 @@ foreach ($excludeTest in $excludeTests) { Remove-Item -Path $excludeTest -Recurse -Force -ErrorAction SilentlyContinue } +# no pty for Windows +${env:SKIP_IO_CAPTURE_TESTS} = "true" + # test it & php "run-tests.php" ` + "-q" ` "-d" "extension=swow" ` "-d" "opcache.enable_cli=on" ` "--show-diff" ` diff --git a/.github/workflows/run-php-src-tests.sh b/.github/workflows/run-php-src-tests.sh index 77d2f28b..c1d1eb55 100755 --- a/.github/workflows/run-php-src-tests.sh +++ b/.github/workflows/run-php-src-tests.sh @@ -4,6 +4,7 @@ set -xeo pipefail if [[ -z "${GITHUB_WORKSPACE}" ]]; then echo "This script is intended to run in GitHub Actions environment only." + echo "It's dangerous and meaningless in other environments." exit 1 fi @@ -99,6 +100,7 @@ rm -rf "${EXCLUDE_TESTS[@]}" # test it php run-tests.php \ + -q \ -d extension="${GITHUB_WORKSPACE}/ext/.libs/swow.so" \ -d opcache.enable_cli=on \ --show-diff \ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36f7543f..5ff13a40 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -115,7 +115,7 @@ jobs: id: test-php-src continue-on-error: true run: | - ./.github/workflows/run-php-src-tests.sh + script -eqc ./.github/workflows/run-php-src-tests.sh - name: Fail if test-extension failed if: steps.test-extension.outcome != 'success' @@ -236,7 +236,7 @@ jobs: id: test-php-src continue-on-error: true run: | - ./.github/workflows/run-php-src-tests.sh + script -q whatever ./.github/workflows/run-php-src-tests.sh - name: Fail if test-extension failed if: steps.test-extension.outcome != 'success'