File tree Expand file tree Collapse file tree 2 files changed +32
-31
lines changed
Expand file tree Collapse file tree 2 files changed +32
-31
lines changed Original file line number Diff line number Diff line change @@ -307,34 +307,3 @@ 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-
329- - name : Run golden tests
330- run : |
331- echo "Running golden tests..."
332- cd tests/golden
333- IMG=${{ inputs.distribution }}:${{ needs.check-goreleaser.outputs.version }}-linux-amd64 docker compose up -d --wait
334- exit_code=$(docker wait golden)
335- docker logs golden
336- if [ "$exit_code" -ne 0 ]; then
337- docker logs collector
338- cat /tmp/expected.yaml
339- exit 1
340- fi
Original file line number Diff line number Diff line change 4848 with :
4949 distribution : otelcol-contrib
5050 type : ' [ "msi" ]'
51+
52+ golden-tests :
53+ needs :
54+ - check-goreleaser
55+ runs-on : ubuntu-24.04
56+ steps :
57+ - name : Checkout
58+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
59+
60+ - name : Download container image artifact
61+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
62+ with :
63+ name : otelcol-contrib-image-${{ needs.check-goreleaser.outputs.version }}-linux-amd64
64+
65+ - name : Load image into docker
66+ run : |
67+ docker image load --input ./otelcol-contrib.tar
68+ docker image ls
69+ docker image inspect otelcol-contrib:${{ needs.check-goreleaser.outputs.version }}-linux-amd64
70+
71+ - name : Run golden tests
72+ run : |
73+ echo "Running golden tests..."
74+ cd tests/golden
75+ IMG=otelcol-contrib:${{ needs.check-goreleaser.outputs.version }}-linux-amd64 docker compose up -d --wait
76+ exit_code=$(docker wait golden)
77+ docker logs golden
78+ cat /tmp/expected.yaml
79+ if [ "$exit_code" -ne 0 ]; then
80+ docker logs collector
81+ exit 1
82+ fi
You can’t perform that action at this time.
0 commit comments