forked from nephio-project/free5gc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prow.yaml
66 lines (63 loc) · 1.48 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
presubmits:
- name: f5gc-operator-unit-test
decorate: true
run_if_changed: "^.*.go$"
spec:
containers:
- image: nephio/gotests:7
command:
- "/bin/sh"
args:
- "-c"
- |
make unit
- name: f5gc-operator-lint
decorate: true
run_if_changed: "^.*.go$"
spec:
containers:
- image: nephio/gotests:7
command:
- "/bin/sh"
args:
- "-c"
- |
make lint
- name: f5gc-operator-gosec
decorate: true
run_if_changed: "^.*.go$"
spec:
containers:
- image: nephio/gotests:7
command:
- "/bin/sh"
args:
- "-c"
- |
make gosec
- name: f5gc-operator-license-header-check
decorate: true
run_if_changed: "^.*.go$"
spec:
containers:
- image: nephio/gotests:7
command:
- "/bin/sh"
args:
- "-c"
- |
"/usr/local/bin/checklicense.sh"
- name: presubmit-f5gc-operator-lichen
decorate: true
always_run: true
spec:
containers:
- image: nephio/gotests:7
command:
- "/bin/bash"
args:
- "-c"
- |
for i in \
$(egrep -rl --null --include \*.go 'package\s+main\b' | xargs -0 -L 1 dirname | sort -u | xargs -d '\n' -L 1 printf "%s " ) ; \
do cd $i; echo $i; rm -f /tmp/cmd; go build -o "/tmp/cmd"; lichen -c /etc/lichen.yaml "/tmp/cmd" || exit 1; cd - ;done