[Git][wxwidgets/wxwidgets][master] Run go-httpbin locally for MSW CI jobs on GitHub too

1 view
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
Mar 2, 2025, 6:04:57 PM3/2/25
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • 7637e9d6
    by Vadim Zeitlin at 2025-03-02T23:30:22+01:00
    Run go-httpbin locally for MSW CI jobs on GitHub too
    
    Do it for the same reason as we do it on appveyor: the main/default
    endpoint is unreliable and may not accept connections, results in
    spurious test failures.
    

1 changed file:

Changes:

  • .github/workflows/ci_msw.yml
    ... ... @@ -120,6 +120,21 @@ jobs:
    120 120
             if: ${{ !contains(matrix.platform, 'arm64') }}
    
    121 121
             working-directory: tests
    
    122 122
             run: |
    
    123
    +            go install github.com/mccutchen/go-httpbin/v2/cmd/go-httpbin@v2
    
    124
    +            $gopath = $(go env GOPATH)
    
    125
    +            $env:PATH += ";$gopath\bin"
    
    126
    +            Start-Job -Name wx_httpbin { go-httpbin -host 127.0.0.1 -port 8081 2>&1 > httpbin.log }
    
    127
    +            Start-Sleep -Seconds 5
    
    128
    +            curl.exe --silent --show-error http://127.0.0.1:8081/ip > $null
    
    129
    +            if ($lastExitCode -eq "0") {
    
    130
    +                $env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:8081"
    
    131
    +            }
    
    132
    +            else {
    
    133
    +                Write-Error "Disabling wxWebRequest tests as launching httpbin failed, log follows:"
    
    134
    +                Get-Content httpbin.log
    
    135
    +                $env:WX_TEST_WEBREQUEST_URL="0"
    
    136
    +            }
    
    137
    +
    
    123 138
                 .\vc*msw*\test.exe
    
    124 139
     
    
    125 140
           - name: Build GUI tests
    


View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help

Reply all
Reply to author
Forward
0 new messages