File tree Expand file tree Collapse file tree 2 files changed +31
-8
lines changed Expand file tree Collapse file tree 2 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,20 @@ steps:
34
34
GOSUMDB : sum.golang.org
35
35
TAGS : bindata sqlite sqlite_unlock_notify
36
36
37
+ - name : checks-frontend
38
+ pull : always
39
+ image : node:12
40
+ commands :
41
+ - make checks-frontend
42
+ depends_on : [deps-frontend]
43
+
44
+ - name : checks-backend
45
+ pull : always
46
+ image : golang:1.14
47
+ commands :
48
+ - make checks-backend
49
+ depends_on : [lint-backend]
50
+
37
51
- name : build-frontend
38
52
pull : always
39
53
image : node:10 # this step is kept at the lowest version of node that we support
49
63
GOPROXY : off
50
64
commands :
51
65
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
52
- depends_on : [lint -backend]
66
+ depends_on : [checks -backend]
53
67
54
68
- name : build-backend-arm64
55
69
pull : always
63
77
commands :
64
78
- make backend # test cross compile
65
79
- rm ./gitea # clean
66
- depends_on : [lint -backend]
80
+ depends_on : [checks -backend]
67
81
68
82
- name : build-backend-386
69
83
pull : always
75
89
GOARCH : 386
76
90
commands :
77
91
- go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
78
- depends_on : [lint -backend]
92
+ depends_on : [checks -backend]
79
93
80
94
---
81
95
kind : pipeline
Original file line number Diff line number Diff line change @@ -290,17 +290,26 @@ fmt-check:
290
290
exit 1; \
291
291
fi ;
292
292
293
- .PHONY : lint
294
- lint : lint-backend lint-frontend
293
+ .PHONY : checks
294
+ checks : checks-frontend checks-backend
295
295
296
- .PHONY : lint-backend
297
- lint-backend : golangci-lint revive vet swagger-check swagger-validate test-vendor
296
+ .PHONY : checks-frontend
297
+ checks-frontend : svg-check
298
+
299
+ .PHONY : checks-backend
300
+ checks-backend : misspell-check test-vendor swagger-check swagger-validate
301
+
302
+ .PHONY : lint
303
+ lint : lint-frontend lint-backend
298
304
299
305
.PHONY : lint-frontend
300
- lint-frontend : node_modules svg-check
306
+ lint-frontend : node_modules
301
307
npx eslint web_src/js build webpack.config.js
302
308
npx stylelint web_src/less
303
309
310
+ .PHONY : lint-backend
311
+ lint-backend : golangci-lint revive vet
312
+
304
313
.PHONY : watch-frontend
305
314
watch-frontend : node-check $(FOMANTIC_DEST ) node_modules
306
315
rm -rf $(WEBPACK_DEST_ENTRIES )
You can’t perform that action at this time.
0 commit comments