forked from quic-go/quic-go
migrate to Ginkgo v2
This commit is contained in:
10
.github/workflows/integration.yml
vendored
10
.github/workflows/integration.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
go-version: ${{ matrix.go }}
|
||||
- run: go version
|
||||
- name: Install Ginkgo
|
||||
run: go install github.com/onsi/ginkgo/ginkgo
|
||||
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
|
||||
- name: Install dependencies
|
||||
run: go install
|
||||
- name: set qlogger
|
||||
@@ -27,14 +27,14 @@ jobs:
|
||||
run: echo "QLOGFLAG=-- -qlog" >> $GITHUB_ENV
|
||||
- name: Run tests
|
||||
run: |
|
||||
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace -skipPackage self integrationtests
|
||||
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests/self ${{ env.QLOGFLAG }}
|
||||
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 -randomizeAllSpecs -randomizeSuites -trace -skipPackage self integrationtests
|
||||
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests/self ${{ env.QLOGFLAG }}
|
||||
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
|
||||
|
||||
2
.github/workflows/no_ginkgo.sh
vendored
2
.github/workflows/no_ginkgo.sh
vendored
@@ -9,7 +9,7 @@ HAS_TESTING=false
|
||||
cd ..
|
||||
for f in $(find . -name "*.go" ! -name "*_test.go" ! -name "tools.go"); do
|
||||
if grep -q "github.com/onsi/ginkgo" $f; then
|
||||
echo "$f imports github.com/onsi/ginkgo"
|
||||
echo "$f imports github.com/onsi/ginkgo/v2"
|
||||
HAS_TESTING=true
|
||||
fi
|
||||
if grep -q "github.com/onsi/gomega" $f; then
|
||||
|
||||
8
.github/workflows/unit.yml
vendored
8
.github/workflows/unit.yml
vendored
@@ -18,22 +18,22 @@ jobs:
|
||||
go-version: ${{ matrix.go }}
|
||||
- run: go version
|
||||
- name: Install Ginkgo
|
||||
run: go install github.com/onsi/ginkgo/ginkgo
|
||||
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
|
||||
- name: Run tests
|
||||
env:
|
||||
TIMESCALE_FACTOR: 10
|
||||
run: ginkgo -r -v -cover -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
|
||||
run: ginkgo -r -v -cover -randomize-all -randomize-suites -trace -skip-package integrationtests
|
||||
- name: Run tests (32 bit)
|
||||
if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX.
|
||||
env:
|
||||
TIMESCALE_FACTOR: 10
|
||||
GOARCH: 386
|
||||
run: ginkgo -r -v -cover -coverprofile coverage.txt -outputdir . -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
|
||||
run: ginkgo -r -v -cover -coverprofile coverage.txt -output-dir . -randomize-all -randomize-suites -trace -skip-package integrationtests
|
||||
- name: Run tests with race detector
|
||||
if: ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow
|
||||
env:
|
||||
TIMESCALE_FACTOR: 20
|
||||
run: ginkgo -r -v -race -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
|
||||
run: ginkgo -r -v -race -randomize-all -randomize-suites -trace -skip-package integrationtests
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user