From 838b994aa7e335d0d1fb5f58fa4c9c05454798d6 Mon Sep 17 00:00:00 2001 From: Daniel Hiller Date: Thu, 12 Dec 2024 15:56:18 +0100 Subject: [PATCH] community: add test and lint jobs Based on PR https://github.com/kubevirt/community/pull/368 where new make targets test and lint are introduced we are adding new presubmit jobs that execute them. Signed-off-by: Daniel Hiller --- .../community/community-presubmits.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/github/ci/prow-deploy/files/jobs/kubevirt/community/community-presubmits.yaml b/github/ci/prow-deploy/files/jobs/kubevirt/community/community-presubmits.yaml index a2caeb0fe7..857fd3542e 100644 --- a/github/ci/prow-deploy/files/jobs/kubevirt/community/community-presubmits.yaml +++ b/github/ci/prow-deploy/files/jobs/kubevirt/community/community-presubmits.yaml @@ -26,3 +26,49 @@ presubmits: memory: "1Gi" limits: memory: "1Gi" + - always_run: false + cluster: kubevirt-prow-control-plane + decorate: true + extra_refs: + - org: kubevirt + repo: project-infra + base_ref: main + name: pull-community-make-lint + run_if_changed: "generators/.*|validators/.*|pkg/.*" + spec: + containers: + - args: + - make lint + command: + - "/usr/local/bin/runner.sh" + - "/bin/sh" + - "-ce" + image: quay.io/kubevirtci/golang:v20241206-ae344ab + resources: + requests: + memory: "1Gi" + limits: + memory: "1Gi" + - always_run: false + cluster: kubevirt-prow-control-plane + decorate: true + extra_refs: + - org: kubevirt + repo: project-infra + base_ref: main + name: pull-community-make-test + run_if_changed: "generators/.*|validators/.*|pkg/.*" + spec: + containers: + - args: + - make test + command: + - "/usr/local/bin/runner.sh" + - "/bin/sh" + - "-ce" + image: quay.io/kubevirtci/golang:v20241206-ae344ab + resources: + requests: + memory: "1Gi" + limits: + memory: "1Gi"