-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (80 loc) · 2.81 KB
/
test-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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]
go-version: ['1.19', '1.20', '1.21', '1.22', '1.23']
otel-version: ['1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.21.0', '1.22.0', '1.23.0', '1.24.0', '1.25.0', '1.26.0', '1.27.0', '1.28.0', '1.29.0']
exclude:
- go-version: '1.19'
otel-version: '1.25.0'
- go-version: '1.19'
otel-version: '1.26.0'
- go-version: '1.19'
otel-version: '1.27.0'
- go-version: '1.19'
otel-version: '1.28.0'
- go-version: '1.19'
otel-version: '1.29.0'
- go-version: '1.20'
otel-version: '1.25.0'
- go-version: '1.20'
otel-version: '1.26.0'
- go-version: '1.20'
otel-version: '1.27.0'
- go-version: '1.20'
otel-version: '1.28.0'
- go-version: '1.20'
otel-version: '1.29.0'
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'
- name: set GO111MODULE
run: |
bash -c 'echo "GO111MODULE=on" >> $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
- 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 }}
OTEL_VERSION: ${{ matrix.otel-version }}
run: DEBUG=1 bundle exec maze-runner --color --format progress