diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index 73ec68b0..c8510b55 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -229,6 +229,8 @@ jobs: $env:PHPRC = Get-Location go test -race ./... + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } cd caddy go test -race ./... + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } working-directory: ${{ github.workspace }}\frankenphp diff --git a/frankenphp_test.go b/frankenphp_test.go index df17219f..47e65c49 100644 --- a/frankenphp_test.go +++ b/frankenphp_test.go @@ -23,6 +23,7 @@ import ( "os" "os/exec" "os/user" + "runtime" "path/filepath" "strconv" "strings" @@ -1315,6 +1316,10 @@ func testOpcachePreload(t *testing.T, opts *testOptions) { t.Skip("This test is only supported in PHP 8.3 and above") return } + if runtime.GOOS == "windows" { + t.Skip("opcache.preload is not supported on Windows") + return + } cwd, _ := os.Getwd() preloadScript := cwd + "/testdata/preload.php"