Skip to content

Commit c76872c

Browse files
committed
only run tests for contrib, still need to catch the expected output
1 parent d892556 commit c76872c

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

.github/workflows/base-ci-goreleaser.yaml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/ci-goreleaser-contrib.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ jobs:
4848
with:
4949
distribution: otelcol-contrib
5050
type: '[ "msi" ]'
51+

0 commit comments

Comments
 (0)