mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
Skip frontend build where unnecessary (#11159)
The testing pipelines and build-backend steps do not depend on frontend files, skip their build for them.
This commit is contained in:
parent
cac69903ae
commit
50475fff06
1 changed files with 4 additions and 7 deletions
|
@ -61,8 +61,7 @@ steps:
|
|||
GOARCH: arm64
|
||||
TAGS: bindata
|
||||
commands:
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
|
||||
- make build # test cross compile
|
||||
- make backend # test cross compile
|
||||
- rm ./gitea # clean
|
||||
depends_on: [lint-backend]
|
||||
|
||||
|
@ -153,8 +152,7 @@ steps:
|
|||
pull: always
|
||||
image: golang:1.14
|
||||
commands:
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
|
||||
- make build
|
||||
- make backend
|
||||
environment:
|
||||
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
|
||||
GOSUMDB: sum.golang.org
|
||||
|
@ -300,8 +298,7 @@ steps:
|
|||
pull: always
|
||||
image: golang:1.14
|
||||
commands:
|
||||
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
|
||||
- make build
|
||||
- make backend
|
||||
environment:
|
||||
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
|
||||
GOSUMDB: sum.golang.org
|
||||
|
|
Loading…
Reference in a new issue