forked from GoogleContainerTools/kpt-backstage-plugins
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.prow.yaml
77 lines (73 loc) · 1.91 KB
/
.prow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
presubmits:
- name: presubmit-kbp-test
decorate: true
always_run: true
spec:
containers:
- image: node:18.20-alpine3.20
command:
- '/bin/sh'
- '-c'
- |
set -euo pipefail
apk update
apk add python3 make g++
yarn install --frozen-lockfile
yarn test:all
- name: presubmit-kbp-lint
decorate: true
always_run: true
spec:
containers:
- image: node:18.20-alpine3.20
command:
- '/bin/sh'
- '-c'
- |
set -euo pipefail
apk update
apk add python3 make g++
yarn install --frozen-lockfile
yarn lint:all
yarn tsc:full
yarn prettier:check
- name: presubmit-kbp-license-header-check
decorate: true
always_run: true
spec:
containers:
- image: nephio/gotests:1783899289886396416
command:
- "/bin/sh"
- "-c"
- |
/usr/local/bin/checklicense.sh > ${ARTIFACTS}/license_headers_results.txt
- name: presubmit-kbp-scancode-toolkit
decorate: true
always_run: true
spec:
containers:
- image: nephio/scancode-toolkit:v31.2.5
command:
- "/bin/sh"
args:
- "-c"
- |
/scancode-toolkit/scancode --ignore "whitelist.json" -clpeui -n 2 --html ${ARTIFACTS}/scancode_report.html . --tallies-with-details
resources:
requests:
cpu: 2
memory: 1Gi
- name: presubmit-kbp-fossology
decorate: true
always_run: true
spec:
containers:
- image: fossology/fossology:scanner
command:
- "/bin/bash"
args:
- "-c"
- |
/bin/fossologyscanner --report SPDX_JSON repo nomos ojo copyright keyword
cp -R results ${ARTIFACTS}/