Skip to content

Commit 76fe577

Browse files
committed
fixing YML to get config to validate
1 parent 1937caa commit 76fe577

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.circleci/config.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2.1
22

33
references:
4-
images:
5-
go: &GOLANG_IMAGE circleci/golang:latest
4+
images:
5+
go: &GOLANG_IMAGE circleci/golang:latest
66

77
# reusable 'executor' object for jobs
88
executors:
@@ -48,25 +48,19 @@ jobs:
4848
steps:
4949
- checkout
5050
- run: mkdir -p $TEST_RESULTS
51+
5152
- 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
5457
- run: |
5558
PACKAGE_NAMES=$(go list ./...)
5659
gotestsum --format=short-verbose --junitfile $TEST_RESULTS/gotestsum-report.xml -- $PACKAGE_NAMES
5760
- store_test_results:
58-
path: /tmp/test-results
61+
path: /tmp/test-results
5962
- 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
7064

7165
workflows:
7266
version: 2
@@ -76,6 +70,3 @@ workflows:
7670
- go-test:
7771
requires:
7872
- go-fmt-and-vet
79-
- go-build:
80-
requires:
81-
- go-fmt-and-vet

0 commit comments

Comments
 (0)