forked from nephio-project/nephio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prow.yaml
80 lines (79 loc) · 2.01 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
78
79
presubmits:
- name: presubmit-nephio-go-test
decorate: true
run_if_changed: "(\\.go|Makefile)$"
spec:
containers:
- image: nephio/gotests:1783899289886396416
command:
- make
args:
- unit
- name: presubmit-nephio-golangci-lint
decorate: true
run_if_changed: "(\\.go|Makefile)$"
spec:
containers:
- image: nephio/gotests:1783899289886396416
command:
- make
args:
- lint
- name: presubmit-nephio-gosec
decorate: true
run_if_changed: "(\\.go|Makefile)$"
spec:
containers:
- image: nephio/gotests:1783899289886396416
command:
- make
args:
- gosec
- name: presubmit-nephio-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-nephio-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-nephio-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}/
- name: presubmit-nephio-lichen
decorate: true
run_if_changed: "^.*.go$"
spec:
containers:
- image: nephio/gotests:1783899289886396416
command:
- "/usr/local/bin/lichen.sh"