From f19fff868d4723ceda94e9505563a07960b60a78 Mon Sep 17 00:00:00 2001 From: JasonPowr <20076537@mail.wit.ie> Date: Thu, 21 Sep 2023 11:32:11 +0100 Subject: [PATCH] add-unit-testing-to-rhtap --- .tekton/backfill-redis-pull-request.yaml | 14 ++++++++++++++ .tekton/backfill-redis-push.yaml | 14 ++++++++++++++ .tekton/rekor-cli-pull-request.yaml | 14 ++++++++++++++ .tekton/rekor-cli-push.yaml | 14 ++++++++++++++ .tekton/rekor-server-pull-request.yaml | 14 ++++++++++++++ .tekton/rekor-server-push.yaml | 14 ++++++++++++++ 6 files changed, 84 insertions(+) diff --git a/.tekton/backfill-redis-pull-request.yaml b/.tekton/backfill-redis-pull-request.yaml index e9d300e06..5571b3797 100644 --- a/.tekton/backfill-redis-pull-request.yaml +++ b/.tekton/backfill-redis-pull-request.yaml @@ -365,6 +365,20 @@ spec: operator: in values: - "false" + - name: unit-test + runAfter: + - clone-repository + workspaces: + - name: output + workspace: workspace + taskSpec: + steps: + - name: run-unit-tests + image: registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6 + script: | + #!/bin/bash + cd / && cd workspace/output + GOFLAGS="" make test workspaces: - name: workspace - name: git-auth diff --git a/.tekton/backfill-redis-push.yaml b/.tekton/backfill-redis-push.yaml index ed8dd46a9..6e8bad830 100644 --- a/.tekton/backfill-redis-push.yaml +++ b/.tekton/backfill-redis-push.yaml @@ -362,6 +362,20 @@ spec: operator: in values: - "false" + - name: unit-test + runAfter: + - clone-repository + workspaces: + - name: output + workspace: workspace + taskSpec: + steps: + - name: run-unit-tests + image: registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6 + script: | + #!/bin/bash + cd / && cd workspace/output + GOFLAGS="" make test workspaces: - name: workspace - name: git-auth diff --git a/.tekton/rekor-cli-pull-request.yaml b/.tekton/rekor-cli-pull-request.yaml index 5aa708985..d213fa49f 100644 --- a/.tekton/rekor-cli-pull-request.yaml +++ b/.tekton/rekor-cli-pull-request.yaml @@ -365,6 +365,20 @@ spec: operator: in values: - "false" + - name: unit-test + runAfter: + - clone-repository + workspaces: + - name: output + workspace: workspace + taskSpec: + steps: + - name: run-unit-tests + image: registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6 + script: | + #!/bin/bash + cd / && cd workspace/output + GOFLAGS="" make test workspaces: - name: workspace - name: git-auth diff --git a/.tekton/rekor-cli-push.yaml b/.tekton/rekor-cli-push.yaml index 6aa3f7da8..3cb3688f1 100644 --- a/.tekton/rekor-cli-push.yaml +++ b/.tekton/rekor-cli-push.yaml @@ -362,6 +362,20 @@ spec: operator: in values: - "false" + - name: unit-test + runAfter: + - clone-repository + workspaces: + - name: output + workspace: workspace + taskSpec: + steps: + - name: run-unit-tests + image: registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6 + script: | + #!/bin/bash + cd / && cd workspace/output + GOFLAGS="" make test workspaces: - name: workspace - name: git-auth diff --git a/.tekton/rekor-server-pull-request.yaml b/.tekton/rekor-server-pull-request.yaml index a0872adae..2f5222ee8 100644 --- a/.tekton/rekor-server-pull-request.yaml +++ b/.tekton/rekor-server-pull-request.yaml @@ -365,6 +365,20 @@ spec: operator: in values: - "false" + - name: unit-test + runAfter: + - clone-repository + workspaces: + - name: output + workspace: workspace + taskSpec: + steps: + - name: run-unit-tests + image: registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6 + script: | + #!/bin/bash + cd / && cd workspace/output + GOFLAGS="" make test workspaces: - name: workspace - name: git-auth diff --git a/.tekton/rekor-server-push.yaml b/.tekton/rekor-server-push.yaml index 9826e827d..267fdbe09 100644 --- a/.tekton/rekor-server-push.yaml +++ b/.tekton/rekor-server-push.yaml @@ -362,6 +362,20 @@ spec: operator: in values: - "false" + - name: unit-test + runAfter: + - clone-repository + workspaces: + - name: output + workspace: workspace + taskSpec: + steps: + - name: run-unit-tests + image: registry.access.redhat.com/ubi9/go-toolset@sha256:52ab391730a63945f61d93e8c913db4cc7a96f200de909cd525e2632055d9fa6 + script: | + #!/bin/bash + cd / && cd workspace/output + GOFLAGS="" make test workspaces: - name: workspace - name: git-auth