1
- name : " Pull: Compliance Tests "
1
+ name : compliance
2
2
3
3
on : [pull_request]
4
4
@@ -7,136 +7,93 @@ concurrency:
7
7
cancel-in-progress : true
8
8
9
9
jobs :
10
- lint_basic :
10
+ lint-backend :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - name : checkout
14
- uses : actions/checkout@v3
15
- - name : setup go
16
- uses : actions/setup-go@v4
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-go@v4
17
15
with :
18
- go-version : ' >=1.20'
16
+ go-version : " >=1.20"
19
17
check-latest : true
20
- - name : deps-backend
21
- run : make deps-backend deps-tools
22
- - name : lint backend
23
- run : make lint-backend
18
+ - run : make deps-backend deps-tools
19
+ - run : make lint-backend
24
20
env :
25
- GOPROXY : https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
26
- GOSUMDB : sum.golang.org
27
21
TAGS : bindata sqlite sqlite_unlock_notify
28
- lint_windows :
22
+ lint-go-windows :
29
23
runs-on : ubuntu-latest
30
24
steps :
31
- - name : checkout
32
- uses : actions/checkout@v3
33
- - name : setup go
34
- uses : actions/setup-go@v4
25
+ - uses : actions/checkout@v3
26
+ - uses : actions/setup-go@v4
35
27
with :
36
- go-version : ' >=1.20'
28
+ go-version : " >=1.20"
37
29
check-latest : true
38
- - name : deps-backend
39
- run : make deps-backend deps-tools
40
- - name : lint-backend-windows
41
- run : make lint-go-windows lint-go-vet
30
+ - run : make deps-backend deps-tools
31
+ - run : make lint-go-windows lint-go-vet
42
32
env :
43
- GOPROXY : https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
44
- GOSUMDB : sum.golang.org
45
33
TAGS : bindata sqlite sqlite_unlock_notify
46
34
GOOS : windows
47
35
GOARCH : amd64
48
- lint_gogit :
36
+ lint-go-gogit :
49
37
runs-on : ubuntu-latest
50
38
steps :
51
- - name : checkout
52
- uses : actions/checkout@v3
53
- - name : setup go
54
- uses : actions/setup-go@v4
39
+ - uses : actions/checkout@v3
40
+ - uses : actions/setup-go@v4
55
41
with :
56
- go-version : ' >=1.20'
42
+ go-version : " >=1.20"
57
43
check-latest : true
58
- - name : deps-backend
59
- run : make deps-backend deps-tools
60
- - name : lint-backend-gogit
61
- run : make lint-backend
44
+ - run : make deps-backend deps-tools
45
+ - run : make lint-go
62
46
env :
63
- GOPROXY : https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
64
- GOSUMDB : sum.golang.org
65
47
TAGS : bindata gogit sqlite sqlite_unlock_notify
66
- - name : checks backend
67
- run : make --always-make checks-backend # ensure the 'go-licenses' make target runs
68
- check_backend :
48
+ checks-backend :
69
49
runs-on : ubuntu-latest
70
50
steps :
71
- - name : checkout
72
- uses : actions/checkout@v3
73
- - name : setup go
74
- uses : actions/setup-go@v4
51
+ - uses : actions/checkout@v3
52
+ - uses : actions/setup-go@v4
75
53
with :
76
- go-version : ' >=1.20'
54
+ go-version : " >=1.20"
77
55
check-latest : true
78
- - name : deps-backend
79
- run : make deps-backend deps-tools
80
- - name : checks backend
81
- run : make --always-make checks-backend # ensure the 'go-licenses' make target runs
56
+ - run : make deps-backend deps-tools
57
+ - run : make --always-make checks-backend # ensure the "go-licenses" make target runs
82
58
frontend :
83
59
runs-on : ubuntu-latest
84
60
steps :
85
- - name : checkout
86
- uses : actions/checkout@v3
87
- - name : setup node
88
- uses : actions/setup-node@v3
61
+ - uses : actions/checkout@v3
62
+ - uses : actions/setup-node@v3
89
63
with :
90
64
node-version : 20
91
- - name : deps-frontend
92
- run : make deps-frontend
93
- - name : lint frontend
94
- run : make lint-frontend
95
- - name : checks frontend
96
- run : make checks-frontend
97
- - name : test frontend
98
- run : make test-frontend
65
+ - run : make deps-frontend
66
+ - run : make lint-frontend
67
+ - run : make checks-frontend
99
68
backend :
100
69
runs-on : ubuntu-latest
101
70
steps :
102
- - name : checkout
103
- uses : actions/checkout@v3
104
- - name : setup go
105
- uses : actions/setup-go@v4
71
+ - uses : actions/checkout@v3
72
+ - uses : actions/setup-go@v4
106
73
with :
107
- go-version : ' >=1.20'
74
+ go-version : " >=1.20"
108
75
check-latest : true
109
- - name : setup node
110
- uses : actions/setup-node@v3
76
+ - uses : actions/setup-node@v3
111
77
with :
112
78
node-version : 20
113
- - name : deps-backend
114
- run : make deps-backend deps-tools
115
- - name : deps-frontend
116
- run : make deps-frontend
117
- - name : build frontend
118
- run : make frontend
119
- - name : build-backend-no-gcc
120
- run : go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
121
- env :
122
- GOPROXY : https://goproxy.io
79
+ - run : make deps-backend deps-tools
80
+ - run : make deps-frontend
81
+ - run : make frontend
82
+ - run : go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
123
83
- name : build-backend-arm64
124
84
run : make backend # test cross compile
125
85
env :
126
- GOPROXY : https://goproxy.io
127
86
GOOS : linux
128
87
GOARCH : arm64
129
88
TAGS : bindata gogit
130
89
- name : build-backend-windows
131
90
run : go build -o gitea_windows
132
91
env :
133
- GOPROXY : https://goproxy.io
134
92
GOOS : windows
135
93
GOARCH : amd64
136
94
TAGS : bindata gogit
137
95
- name : build-backend-386
138
96
run : go build -o gitea_linux_386 # test if compatible with 32 bit
139
97
env :
140
- GOPROXY : https://goproxy.io
141
98
GOOS : linux
142
99
GOARCH : 386
0 commit comments