diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index bb7996f5..46d9f2f0 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -79,14 +79,26 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: '1.21' + cache-dependency-path: | + .otelcol-builder.yaml + .goreleaser.yaml + - name: Set up QEMU + uses: docker/setup-qemu-action@v3.0.0 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3.0.0 + - name: Install opentelemetry-collector-builder + working-directory: ./sidecar/otelcol + run: make install-builder - uses: imranismail/setup-kustomize@v2 - name: Install kuttl run: | curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v${{ env.KUTTL_VERSION }}/kubectl-kuttl_${{ env.KUTTL_VERSION }}_linux_x86_64 chmod +x /usr/local/bin/kubectl-kuttl - - name: Run e2e tests - run: make e2e + - name: Run e2e tests for Fluent Bit in tailing sidecar + run: make e2e TAILING_SIDECAR=fluentbit + - name: Run e2e tests for otelcol in tailing sidecar + run: make e2e TAILING_SIDECAR=otelcol test-helm-chart: name: Test Helm chart