diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 000000000..1cb99520b --- /dev/null +++ b/.github/workflows/integration.yml @@ -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 diff --git a/.travis/script.sh b/.travis/script.sh deleted file mode 100755 index faea5a400..000000000 --- a/.travis/script.sh +++ /dev/null @@ -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