Skip to content

Commit 0a1886a

Browse files
committed
add simple Prow jobs (non-e2e)
1 parent d577569 commit 0a1886a

File tree

3 files changed

+74
-5
lines changed

3 files changed

+74
-5
lines changed

.ci-operator.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prow.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
presubmits:
2+
- name: pull-kcp-verify
3+
always_run: true
4+
decorate: true
5+
clone_uri: "https://github.com/kcp-dev/kcp"
6+
labels:
7+
preset-goproxy: "true"
8+
spec:
9+
containers:
10+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
11+
command:
12+
- make
13+
- verify-boilerplate
14+
- verify-modules
15+
- verify-k8s-deps
16+
- verify-imports
17+
resources:
18+
requests:
19+
memory: 1Gi
20+
cpu: 1
21+
22+
- name: pull-kcp-verify-codegen
23+
always_run: true
24+
decorate: true
25+
clone_uri: "https://github.com/kcp-dev/kcp"
26+
labels:
27+
preset-goproxy: "true"
28+
spec:
29+
containers:
30+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
31+
command:
32+
- make
33+
- verify-codegen
34+
resources:
35+
requests:
36+
memory: 1Gi
37+
cpu: 1
38+
39+
- name: pull-kcp-lint
40+
always_run: true
41+
decorate: true
42+
clone_uri: "https://github.com/kcp-dev/kcp"
43+
labels:
44+
preset-goproxy: "true"
45+
spec:
46+
containers:
47+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
48+
command:
49+
- make
50+
- lint
51+
resources:
52+
requests:
53+
memory: 4Gi
54+
cpu: 2
55+
56+
- name: pull-kcp-test-unit
57+
always_run: true
58+
decorate: true
59+
clone_uri: "https://github.com/kcp-dev/kcp"
60+
labels:
61+
preset-goproxy: "true"
62+
spec:
63+
containers:
64+
- image: ghcr.io/kcp-dev/infra/build:1.19.9-2
65+
command:
66+
- make
67+
- test
68+
env:
69+
- name: USE_GOTESTSUM
70+
value: '1'
71+
resources:
72+
requests:
73+
memory: 4Gi
74+
cpu: 2

hack/verify-go-versions.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ set -o pipefail
1919

2020
VERSION=$(grep "go 1." go.mod | sed 's/go //')
2121

22-
grep "tag: \"" .ci-operator.yaml | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in .ci-operator.yaml, expected ${VERSION}"; exit 1; }
2322
grep "FROM .* golang:" Dockerfile | { ! grep -v "${VERSION}"; } || { echo "Wrong go version in Dockerfile, expected ${VERSION}"; exit 1; }
2423
grep -w "go-version:" .github/workflows/*.yaml | { ! grep -v "go-version: v${VERSION}"; } || { echo "Wrong go version in .github/workflows/*.yaml, expected ${VERSION}"; exit 1; }
2524

0 commit comments

Comments
 (0)