feat(ci): cache Go deps
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter 2023-03-05 11:36:05 +01:00
parent 92e334d373
commit 3933110710
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 10 additions and 2 deletions

View file

@ -16,6 +16,9 @@ steps:
GO111MODULE: "on"
CGO_ENABLED: "0"
GOMEMLIMIT: "1150MiB"
volumes:
- name: go-cache
path: /go
commands:
- golangci-lint run -v
@ -26,6 +29,9 @@ steps:
GO111MODULE: "on"
CGO_ENABLED: "1"
DOCKER_HOST: tcp://localhost:2375
volumes:
- name: go-cache
path: /go
commands:
- go install gotest.tools/gotestsum@latest
- gotestsum --junitfile out/results.xml --format pkgname-and-test-fails -- -race -shuffle=on ./...
@ -35,6 +41,10 @@ steps:
settings:
paths: out/results.xml
volumes:
- name: go-cache
temp: { }
---
kind: pipeline
type: docker

2
go.sum
View file

@ -193,8 +193,6 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc=
golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 h1:Jvc7gsqn21cJHCmAWx0LiimpP18LZmUxkT5Mp7EZ1mI=
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/exp v0.0.0-20230303215020-44a13b063f3e h1:S8xf0d0OEmWrClvbMiUSp+7cGD00txONylwExlf9wR0=
golang.org/x/exp v0.0.0-20230303215020-44a13b063f3e/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=