File tree Expand file tree Collapse file tree 2 files changed +5
-22
lines changed
Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -307,34 +307,16 @@ jobs:
307307 exit 1
308308 fi
309309
310- golden-tests :
311- needs :
312- - check-goreleaser
313- runs-on : ubuntu-24.04
314- steps :
315- - name : Checkout
316- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
317-
318- - name : Download container image artifact
319- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
320- with :
321- name : ${{ inputs.distribution }}-image-${{ needs.check-goreleaser.outputs.version }}-linux-amd64
322-
323- - name : Load image into docker
324- run : |
325- docker image load --input ./${{ inputs.distribution }}.tar
326- docker image ls
327- docker image inspect ${{ inputs.distribution }}:${{ needs.check-goreleaser.outputs.version }}-linux-amd64
328-
329310 - name : Run golden tests
311+ if : matrix.GOARCH == 'linux' && matrix.GOOS == 'amd64' && inputs.distribution == 'otelcol-contrib'
330312 run : |
331313 echo "Running golden tests..."
332314 cd tests/golden
333- IMG=${{ inputs.distribution }} :${{ needs.check-goreleaser.outputs.version }}-linux-amd64 docker compose up -d --wait
315+ IMG=otelcol-contrib :${{ needs.check-goreleaser.outputs.version }}-linux-amd64 docker compose up -d --wait
334316 exit_code=$(docker wait golden)
335317 docker logs golden
318+ cat /tmp/expected.yaml
336319 if [ "$exit_code" -ne 0 ]; then
337320 docker logs collector
338- cat /tmp/expected.yaml
339321 exit 1
340- fi
322+ fi
Original file line number Diff line number Diff line change 4848 with :
4949 distribution : otelcol-contrib
5050 type : ' [ "msi" ]'
51+
You can’t perform that action at this time.
0 commit comments