forked from quic-go/quic-go
Merge pull request #3059 from lucas-clemente/github-actions-debug
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" ]
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DEBUG: false # set this to true to export qlogs and save them as artifacts
|
||||
TIMESCALE_FACTOR: 3
|
||||
name: Integration Tests (Go ${{ matrix.go }})
|
||||
steps:
|
||||
@@ -21,9 +22,22 @@ jobs:
|
||||
run: go install github.com/onsi/ginkgo/ginkgo
|
||||
- name: Install dependencies
|
||||
run: go install
|
||||
- name: set qlogger
|
||||
if: ${{ env.DEBUG }}
|
||||
run: echo "QLOGFLAG=-- -qlog" >> $GITHUB_ENV
|
||||
- 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)
|
||||
env:
|
||||
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