Skip to content

Commit 2190736

Browse files
committed
ci: update config to properly execute tests
Signed-off-by: Mark Sagi-Kazar <[email protected]>
1 parent e8de2a5 commit 2190736

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.circleci/config.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ integration-test-base: &integration-test-base
5353
- restore_cache:
5454
name: Restore Go module cache
5555
keys:
56-
- gomod-v2-{{ .Branch }}-{{ checksum "go.sum" }}
56+
- gomod-v2-{{ .Branch }}-{{ checksum "tests/go.sum" }}
5757
- gomod-v2-{{ .Branch }}
5858
- gomod-v2-master
5959
- gomod-v2
@@ -102,25 +102,27 @@ jobs:
102102
- restore_cache:
103103
name: Restore Go module cache
104104
keys:
105-
- gomod-v2-{{ .Branch }}-{{ checksum "go.sum" }}
105+
- gomod-v2-{{ .Branch }}-{{ checksum "tests/go.sum" }}
106106
- gomod-v2-{{ .Branch }}
107107
- gomod-v2-master
108108
- gomod-v2
109109

110110
- run:
111111
name: Install dependencies
112-
command: go mod download
112+
command: |
113+
cd tests
114+
go mod download
113115
114116
- save_cache:
115117
name: Save Go module cache
116-
key: gomod-v2-{{ .Branch }}-{{ checksum "go.sum" }}
118+
key: gomod-v2-{{ .Branch }}-{{ checksum "tests/go.sum" }}
117119
paths:
118120
- /go/pkg/mod
119121

120122
- restore_cache:
121123
name: Restore license cache
122124
keys:
123-
- licensei-v2-{{ .Branch }}-{{ checksum "go.sum" }}
125+
- licensei-v2-{{ .Branch }}-{{ checksum "tests/go.sum" }}
124126
- licensei-v2-{{ .Branch }}
125127
- licensei-v2-master
126128
- licensei-v2
@@ -131,7 +133,7 @@ jobs:
131133

132134
- save_cache:
133135
name: Save license cache
134-
key: licensei-v2-{{ .Branch }}-{{ checksum "go.sum" }}
136+
key: licensei-v2-{{ .Branch }}-{{ checksum "tests/go.sum" }}
135137
paths:
136138
- .licensei.cache
137139

0 commit comments

Comments
 (0)