mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-02 19:57:35 +03:00
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
on: [push, pull_request]
|
|
|
|
jobs:
|
|
integration:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go: [ "1.18.x", "1.19.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:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
|
|
go-version: ${{ matrix.go }}
|
|
- run: go version
|
|
- name: Install Ginkgo
|
|
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
|
|
- name: Install dependencies
|
|
run: go install
|
|
- name: set qlogger
|
|
if: env.DEBUG == 'true'
|
|
run: echo "QLOGFLAG=-- -qlog" >> $GITHUB_ENV
|
|
- name: Run tests
|
|
run: |
|
|
ginkgo -r -v -randomize-all -randomize-suites -trace -skip-package self integrationtests
|
|
ginkgo -r -v -randomize-all -randomize-suites -trace integrationtests/self ${{ env.QLOGFLAG }}
|
|
- name: Run tests (32 bit)
|
|
env:
|
|
GOARCH: 386
|
|
run: |
|
|
ginkgo -r -v -randomize-all -randomizeSuites -trace -skip-package self integrationtests
|
|
ginkgo -r -v -randomize-all -randomizeSuites -trace integrationtests/self ${{ env.QLOGFLAG }}
|
|
- name: save qlogs
|
|
if: ${{ always() && env.DEBUG == 'true' }}
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: qlogs
|
|
path: integrationtests/self/*.qlog
|