diff options
author | silverwind <me@silverwind.io> | 2022-02-12 08:08:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 07:08:53 +0000 |
commit | 2ddff74a542aa10a06d22742111603f99db46a34 (patch) | |
tree | 90fce444ad21815e1e69c7d1a7b373cd45962530 /.golangci.yml | |
parent | 4e57bd1d307d20341e9ae5cdb6aeb7913bd1f59d (diff) | |
download | gitea-2ddff74a542aa10a06d22742111603f99db46a34.tar.gz gitea-2ddff74a542aa10a06d22742111603f99db46a34.zip |
Reduce CI go module downloads, add make targets (#18708)
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
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml index 9bba34a10c..91faa75d73 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -24,6 +24,10 @@ linters: run: timeout: 3m + skip-dirs: + - node_modules + - public + - web_src linters-settings: gocritic: |