Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build test container on CPaaS workflow #1401

Merged
merged 5 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/cpaas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ jobs:
- build-collector-slim
- sync-drivers-and-support-packages

build-test-containers:
uses: ./.github/workflows/integration-test-containers.yml
needs:
- init
with:
collector-tag: ${{ needs.init.outputs.collector-tag }}-cpaas
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }}
rebuild-qa-containers: ${{ needs.init.outputs.rebuild-qa-containers == 'true' }}
secrets: inherit

integration-tests:
uses: ./.github/workflows/integration-tests-vm-type.yml
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-integration-tests') }}
Expand All @@ -109,6 +119,7 @@ jobs:
needs:
- init
- build-collector-full
- build-test-containers
secrets: inherit

# Isolating multi-arch testing temporarily while fixes are found for ppc64le
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG TEST_ROOT="/tests"

FROM --platform=$BUILDPLATFORM golang:1.19 as builder
FROM golang:1.19 as builder

ARG TEST_ROOT

Expand All @@ -15,7 +15,7 @@ WORKDIR "$TEST_ROOT"

RUN CGO_ENABLED=0 go test -tags bench -c -o collector-tests

FROM --platform=$BUILDPLATFORM alpine:3.18
FROM alpine:3.18

ARG TEST_ROOT

Expand Down
Loading