Skip to content

Enable maze tests in CI #15

Enable maze tests in CI

Enable maze tests in CI #15

Workflow file for this run

name: Test package against Go versions
on: [ push ]
jobs:
test:
runs-on: ${{ matrix.os }}-latest
defaults:
run:
working-directory: 'go/src/github.com/bugsnag/bugsnag-go-performance' # relative to $GITHUB_WORKSPACE
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows]
#go-version: ['1.11', '1.12', '1.13', '1.14', '1.15', '1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22']
go-version: ['1.11', '1.12', '1.13', '1.14', '1.15']
steps:
- uses: actions/checkout@v2
with:
path: 'go/src/github.com/bugsnag/bugsnag-go-performance' # relative to $GITHUB_WORKSPACE
- name: set GOPATH
if: matrix.os == 'ubuntu'
run: |
bash -c 'echo "GOPATH=$GITHUB_WORKSPACE/go" >> $GITHUB_ENV'
- name: set GOPATH
if: matrix.os == 'windows'
run: |
bash -c 'echo "GOPATH=$GITHUB_WORKSPACE\\\\go" >> $GITHUB_ENV'
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: install dependencies
run: go get -v -d ./...
- name: run tests
run: go test $(go list ./... | grep -v /features/)
- name: vet package
# go1.12 vet shows spurious 'unknown identifier' issues
if: matrix.go-version != '1.12'
run: go vet $(go list ./... | grep -v /features/)
- name: install integration dependencies
if: matrix.os == 'ubuntu'
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod 755 $DOCKER_CONFIG/cli-plugins/docker-compose
- name: install Ruby
if: matrix.os == 'ubuntu'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
working-directory: go/src/github.com/bugsnag/bugsnag-go-performance # relative to $GITHUB_WORKSPACE
- name: maze tests
working-directory: go/src/github.com/bugsnag/bugsnag-go-performance
if: matrix.os == 'ubuntu'
env:
GO_VERSION: ${{ matrix.go-version }}
run: VERBOSE=1 bundle exec maze-runner --color --format progress