move integration tests to GitHub Actions, disable Travis

This commit is contained in:
Marten Seemann 2020-11-20 17:58:43 +07:00
parent 325bc1694d
commit 02bdce9c05
2 changed files with 25 additions and 13 deletions

25
.github/workflows/integration.yml vendored Normal file
View 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

View file

@ -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