1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-17 23:18:28 +00:00

Reduce CI go module downloads, add make targets (#18708, #18475, #18443) (#18741)

Backport #18708 
Backport #18475 
Backport #18443 

The CI currently downloads all go modules in each pipeline step because go modules reside outside the project directory. Fix this by introducing a volume for the `/go` directory [1] so modules are only downloaded once per pipeline using a new `deps-backend` make target.

For completeness, I also included new `deps` and `deps-frontend` targets and the frontend one is also triggered explicitly on CI where needed.

[1] https://docs.drone.io/pipeline/kubernetes/examples/language/golang/#dependencies

* Also backports #18475 and #18443 so that is was able to merge cleanly.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind
2022-02-12 11:43:08 +01:00
committed by GitHub
parent 65ad6362d7
commit c04a4afac1
3 changed files with 215 additions and 61 deletions

View File

@@ -23,6 +23,10 @@ linters:
run:
timeout: 3m
skip-dirs:
- node_modules
- public
- web_src
linters-settings:
gocritic: