File tree Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
3
references :
4
- images :
5
- go : &GOLANG_IMAGE circleci/golang:latest
4
+ images :
5
+ go : &GOLANG_IMAGE circleci/golang:latest
6
6
7
7
# reusable 'executor' object for jobs
8
8
executors :
@@ -48,25 +48,19 @@ jobs:
48
48
steps :
49
49
- checkout
50
50
- run : mkdir -p $TEST_RESULTS
51
+
51
52
- restore_cache : # restore cache from dev-build job
52
- keys :
53
- - go-getter-modcache-v1-{{ checksum "go.mod" }}
53
+ keys :
54
+ - go-getter-modcache-v1-{{ checksum "go.mod" }}
55
+
56
+ # run go tests with gotestsum
54
57
- run : |
55
58
PACKAGE_NAMES=$(go list ./...)
56
59
gotestsum --format=short-verbose --junitfile $TEST_RESULTS/gotestsum-report.xml -- $PACKAGE_NAMES
57
60
- store_test_results :
58
- path : /tmp/test-results
61
+ path : /tmp/test-results
59
62
- store_artifacts :
60
- path : /tmp/test-results
61
-
62
- go-build :
63
- executor : go
64
- steps :
65
- - checkout
66
- - restore_cache : # restore cache from dev-build job
67
- keys :
68
- - go-getter-modcache-v1-{{ checksum "go.mod" }}
69
- - run : go build ./cmd/go-getter
63
+ path : /tmp/test-results
70
64
71
65
workflows :
72
66
version : 2
@@ -76,6 +70,3 @@ workflows:
76
70
- go-test :
77
71
requires :
78
72
- go-fmt-and-vet
79
- - go-build :
80
- requires :
81
- - go-fmt-and-vet
You can’t perform that action at this time.
0 commit comments