-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] cleanup and refactor testing workflows (#373)
Signed-off-by: odubajDT <[email protected]>
- Loading branch information
Showing
12 changed files
with
39 additions
and
292 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,22 +10,52 @@ inputs: | |
required: false | ||
description: "Kubernetes version that should be used" | ||
# renovate: datasource=github-releases depName=kubernetes/kubernetes | ||
default: "v1.27.3" | ||
runtime_tag: | ||
description: "Tag for the runner image" | ||
required: true | ||
default: "v1.27.11" | ||
cluster-name: | ||
required: false | ||
description: "Name of the kind cluster" | ||
default: "test-cluster" | ||
default: "kind" | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "~1.22.6" | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Cache tools | ||
id: cache-tools | ||
uses: actions/cache@v4 | ||
with: | ||
path: .tools | ||
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
|
||
- name: Install tools | ||
if: steps.cache-tools.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: | | ||
mkdir -p .tools | ||
touch .tools/* | ||
make install-tools | ||
- name: "Create single kind Cluster" | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: ${{ inputs.cluster-name }} | ||
version: ${{ inputs.kind-version }} | ||
node_image: "kindest/node:${{ inputs.k8s-version }}" | ||
kubectl_version: ${{ inputs.k8s-version }} | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dynatrace-otel-collector-image | ||
path: /tmp | ||
|
||
- name: Load Image into Kind | ||
shell: bash | ||
run: | | ||
kind load image-archive /tmp/dynatrace-otel-collector.tar -n ${{ inputs.cluster-name }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,48 +104,8 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "~1.22.6" | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Cache tools | ||
id: cache-tools | ||
uses: actions/cache@v4 | ||
with: | ||
path: .tools | ||
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
|
||
- name: Install tools | ||
if: steps.cache-tools.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p .tools | ||
touch .tools/* | ||
make install-tools | ||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
node_image: "kindest/node:v1.27.11" | ||
kubectl_version: "v1.27.11" | ||
cluster_name: kind | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dynatrace-otel-collector-image | ||
path: /tmp | ||
|
||
- name: Load Docker image | ||
run: | | ||
docker load --input /tmp/dynatrace-otel-collector.tar | ||
- name: Load Image into Kind | ||
shell: bash | ||
run: | | ||
kind load docker-image dynatrace-otel-collector:e2e-test --name kind | ||
- name: Setup cluster | ||
uses: ./.github/actions/create-cluster | ||
|
||
- name: Run e2e tests | ||
run: | | ||
|
@@ -160,48 +120,8 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "~1.22.6" | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Cache tools | ||
id: cache-tools | ||
uses: actions/cache@v4 | ||
with: | ||
path: .tools | ||
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
|
||
- name: Install tools | ||
if: steps.cache-tools.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p .tools | ||
touch .tools/* | ||
make install-tools | ||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
node_image: "kindest/node:v1.27.11" | ||
kubectl_version: "v1.27.11" | ||
cluster_name: kind | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dynatrace-otel-collector-image | ||
path: /tmp | ||
|
||
- name: Load Docker image | ||
run: | | ||
docker load --input /tmp/dynatrace-otel-collector.tar | ||
- name: Load Image into Kind | ||
shell: bash | ||
run: | | ||
kind load docker-image dynatrace-otel-collector:e2e-test --name kind | ||
- name: Setup cluster | ||
uses: ./.github/actions/create-cluster | ||
|
||
- name: Run e2e tests | ||
run: | | ||
|
12 changes: 0 additions & 12 deletions
12
internal/testbed/chainsaw/prometheus-node-exporter/00-assert.yaml
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
internal/testbed/chainsaw/prometheus-node-exporter/chainsaw-test.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
internal/testbed/chainsaw/syslog-receiver/chainsaw-test.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.