mirror of https://github.com/status-im/consul.git
ci: Fix working_directory for go mod download
The previous PR which added these was accidentally performing the download in the root directory. For the api, and sdk directories it should be in done in the same directory that will be used to run tests. Otherwise the wrong dependencies will be downloaded which may add unnecessary time to the CI run.
This commit is contained in:
parent
ac309d55f4
commit
625ce9baf2
|
@ -131,7 +131,9 @@ jobs:
|
|||
- checkout
|
||||
- attach_workspace:
|
||||
at: /go/bin
|
||||
- run: go mod download
|
||||
- run:
|
||||
working_directory: api
|
||||
command: go mod download
|
||||
- run:
|
||||
working_directory: api
|
||||
name: go test
|
||||
|
@ -160,7 +162,9 @@ jobs:
|
|||
- checkout
|
||||
- attach_workspace:
|
||||
at: /go/bin
|
||||
- run: go mod download
|
||||
- run:
|
||||
working_directory: sdk
|
||||
command: go mod download
|
||||
- run:
|
||||
working_directory: sdk
|
||||
name: go test
|
||||
|
|
Loading…
Reference in New Issue