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.
pull/7572/head
Daniel Nephin 2020-04-01 17:02:15 -04:00
parent ac309d55f4
commit 625ce9baf2
1 changed files with 6 additions and 2 deletions

View File

@ -131,7 +131,9 @@ jobs:
- checkout - checkout
- attach_workspace: - attach_workspace:
at: /go/bin at: /go/bin
- run: go mod download - run:
working_directory: api
command: go mod download
- run: - run:
working_directory: api working_directory: api
name: go test name: go test
@ -160,7 +162,9 @@ jobs:
- checkout - checkout
- attach_workspace: - attach_workspace:
at: /go/bin at: /go/bin
- run: go mod download - run:
working_directory: sdk
command: go mod download
- run: - run:
working_directory: sdk working_directory: sdk
name: go test name: go test