forked from quic-go/quic-go
move integration tests to GitHub Actions, disable Travis
This commit is contained in:
25
.github/workflows/integration.yml
vendored
Normal file
25
.github/workflows/integration.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
unit:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go: [ "1.14", "1.15" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Integration Tests, Go ${{ matrix.go }})
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go }}
|
||||||
|
- run: go version
|
||||||
|
- name: Install Ginkgo
|
||||||
|
run: go install github.com/onsi/ginkgo/ginkgo
|
||||||
|
- name: Install dependencies
|
||||||
|
run: go install
|
||||||
|
- name: Run tests
|
||||||
|
run: ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests
|
||||||
|
- name: Run tests (32 bit)
|
||||||
|
env:
|
||||||
|
GOARCH: 386
|
||||||
|
run: ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
# run benchmark tests
|
|
||||||
ginkgo -randomizeAllSpecs -randomizeSuites -trace benchmark -- -size=10
|
|
||||||
# run benchmark tests with the Go race detector
|
|
||||||
# The Go race detector only works on amd64.
|
|
||||||
if [ "${TRAVIS_GOARCH}" != '386' ]; then
|
|
||||||
ginkgo -race -randomizeAllSpecs -randomizeSuites -trace benchmark -- -size=5
|
|
||||||
fi
|
|
||||||
# run integration tests
|
|
||||||
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests
|
|
||||||
Reference in New Issue
Block a user