forked from quic-go/quic-go
add a debug option to the GitHub Action integrationtest workflow
This commit is contained in:
18
.github/workflows/integration.yml
vendored
18
.github/workflows/integration.yml
vendored
@@ -8,6 +8,7 @@ jobs:
|
|||||||
go: [ "1.15.x", "1.16.x" ]
|
go: [ "1.15.x", "1.16.x" ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
DEBUG: false # set this to true to export qlogs and save them as artifacts
|
||||||
TIMESCALE_FACTOR: 3
|
TIMESCALE_FACTOR: 3
|
||||||
name: Integration Tests (Go ${{ matrix.go }})
|
name: Integration Tests (Go ${{ matrix.go }})
|
||||||
steps:
|
steps:
|
||||||
@@ -21,9 +22,22 @@ jobs:
|
|||||||
run: go install github.com/onsi/ginkgo/ginkgo
|
run: go install github.com/onsi/ginkgo/ginkgo
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: go install
|
run: go install
|
||||||
|
- name: set qlogger
|
||||||
|
if: ${{ env.DEBUG }}
|
||||||
|
run: echo "QLOGFLAG=-- -qlog" >> $GITHUB_ENV
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests
|
run: |
|
||||||
|
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace -skipPackage self integrationtests
|
||||||
|
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests/self ${{ env.QLOGFLAG }}
|
||||||
- name: Run tests (32 bit)
|
- name: Run tests (32 bit)
|
||||||
env:
|
env:
|
||||||
GOARCH: 386
|
GOARCH: 386
|
||||||
run: ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests
|
run: |
|
||||||
|
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace -skipPackage self integrationtests
|
||||||
|
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests/self ${{ env.QLOGFLAG }}
|
||||||
|
- name: save qlogs
|
||||||
|
if: ${{ always() && env.DEBUG }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: qlogs
|
||||||
|
path: integrationtests/self/*.qlog
|
||||||
|
|||||||
Reference in New Issue
Block a user