github.com/tumi8/quic-go@v0.37.4-tum/.github/workflows/integration.yml (about) 1 on: [push, pull_request] 2 3 jobs: 4 integration: 5 strategy: 6 fail-fast: false 7 matrix: 8 go: [ "1.20.x", "1.21.0-rc.3" ] 9 runs-on: ${{ fromJSON(vars['INTEGRATION_RUNNER_UBUNTU'] || '"ubuntu-latest"') }} 10 env: 11 DEBUG: false # set this to true to export qlogs and save them as artifacts 12 TIMESCALE_FACTOR: 3 13 name: Integration Tests (Go ${{ matrix.go }}) 14 steps: 15 - uses: actions/checkout@v3 16 - uses: actions/setup-go@v3 17 with: 18 stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")' 19 go-version: ${{ matrix.go }} 20 - run: go version 21 - name: set qlogger 22 if: env.DEBUG == 'true' 23 run: echo "QLOGFLAG= -qlog" >> $GITHUB_ENV 24 - name: Run other tests 25 run: | 26 go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace -skip-package self,versionnegotiation integrationtests 27 go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace integrationtests/versionnegotiation -- ${{ env.QLOGFLAG }} 28 - name: Run self tests, using QUIC v1 29 if: success() || failure() # run this step even if the previous one failed 30 run: go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace integrationtests/self -- -version=1 ${{ env.QLOGFLAG }} 31 - name: Run self tests, using QUIC v2 32 if: success() || failure() # run this step even if the previous one failed 33 run: go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace integrationtests/self -- -version=2 ${{ env.QLOGFLAG }} 34 - name: Run set tests, with GSO enabled 35 if: success() || failure() # run this step even if the previous one failed 36 env: 37 QUIC_GO_ENABLE_GSO: true 38 run: go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace integrationtests/self -- -version=1 ${{ env.QLOGFLAG }} 39 - name: Run tests (32 bit) 40 if: success() || failure() # run this step even if the previous one failed 41 env: 42 GOARCH: 386 43 run: | 44 go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace -skip-package self,versionnegotiation integrationtests 45 go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace integrationtests/versionnegotiation -- ${{ env.QLOGFLAG }} 46 go run github.com/onsi/ginkgo/v2/ginkgo -r -v -randomize-all -randomize-suites -trace integrationtests/self -- ${{ env.QLOGFLAG }} 47 - name: save qlogs 48 if: ${{ always() && env.DEBUG == 'true' }} 49 uses: actions/upload-artifact@v2 50 with: 51 name: qlogs 52 path: integrationtests/self/*.qlog