|
85 | 85 | dirs: _integrations/nrb3
|
86 | 86 | - go-version: 1.13.x
|
87 | 87 | dirs: _integrations/nrmongo
|
| 88 | + steps: |
| 89 | + - name: Install Go |
| 90 | + uses: actions/setup-go@v1 |
| 91 | + with: |
| 92 | + go-version: ${{ matrix.go-version }} |
88 | 93 |
|
89 |
| - # v3 agent |
| 94 | + - name: Checkout Code |
| 95 | + uses: actions/checkout@v1 |
| 96 | + with: |
| 97 | + # Required when using older versions of Go that do not support gomod. |
| 98 | + # Note the required presence of the /go-agent/ directory at the |
| 99 | + # beginning of this path. It is required in order to match the |
| 100 | + # ${{ github.workspace }} used by the GOPATH env var. pwd when cloning |
| 101 | + # the repo is <something>/go-agent/ whereas ${{ github.workspace }} |
| 102 | + # returns <something/go-agent/go-agent/. |
| 103 | + path: ./go-agent/src/github.com/newrelic/go-agent |
| 104 | + |
| 105 | + - name: Run Tests |
| 106 | + run: bash build-script.sh |
| 107 | + env: |
| 108 | + DIRS: ${{ matrix.dirs }} |
| 109 | + EXTRATESTING: ${{ matrix.extratesting }} |
| 110 | + PIN: ${{ matrix.pin }} |
| 111 | + |
| 112 | + go-agent-v3: |
| 113 | + runs-on: ubuntu-18.04 |
| 114 | + env: |
| 115 | + # Required when using older versions of Go that do not support gomod. |
| 116 | + GOPATH: ${{ github.workspace }} |
| 117 | + |
| 118 | + strategy: |
| 119 | + # if one test fails, do not abort the rest |
| 120 | + fail-fast: false |
| 121 | + matrix: |
| 122 | + include: |
90 | 123 | - go-version: 1.17.x
|
91 | 124 | dirs: v3/newrelic,v3/internal,v3/examples
|
92 | 125 | - go-version: 1.18.x
|
@@ -183,16 +216,13 @@ jobs:
|
183 | 216 | extratesting: go get -u github.com/nats-io/nats.go/@master
|
184 | 217 | - go-version: 1.17.x
|
185 | 218 | dirs: v3/integrations/nrnats/test
|
186 |
| - extratesting: go get -u github.com/nats-io/nats.go/@master |
187 | 219 | - go-version: 1.17.x
|
188 | 220 | dirs: v3/integrations/nrstan
|
189 | 221 | extratesting: go get -u github.com/nats-io/stan.go/@master
|
190 | 222 | - go-version: 1.17.x
|
191 | 223 | dirs: v3/integrations/nrstan/test
|
192 |
| - extratesting: go get -u github.com/nats-io/stan.go/@master |
193 | 224 | - go-version: 1.17.x
|
194 | 225 | dirs: v3/integrations/nrstan/examples
|
195 |
| - extratesting: go get -u github.com/nats-io/stan.go/@master |
196 | 226 | - go-version: 1.17.x
|
197 | 227 | dirs: v3/integrations/logcontext
|
198 | 228 | extratesting: go get -u github.com/sirupsen/logrus@master
|
@@ -233,7 +263,7 @@ jobs:
|
233 | 263 | path: ./go-agent/src/github.com/newrelic/go-agent
|
234 | 264 |
|
235 | 265 | - name: Run Tests
|
236 |
| - run: bash build-script.sh |
| 266 | + run: bash v3/build-script.sh |
237 | 267 | env:
|
238 | 268 | DIRS: ${{ matrix.dirs }}
|
239 | 269 | EXTRATESTING: ${{ matrix.extratesting }}
|
|
0 commit comments