We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6616ff4 commit df331e0Copy full SHA for df331e0
.circleci/config.yml
@@ -0,0 +1,33 @@
1
+version: 2.1
2
+
3
+jobs:
4
+ build:
5
+ working_directory: ~/repo
6
7
+ docker:
8
+ - image: circleci/golang:1.15.8
9
10
+ steps:
11
+ - checkout
12
+ - restore_cache:
13
+ keys:
14
+ - go-mod-v4-{{ checksum "go.sum" }}
15
+ - run:
16
+ name: Install Dependencies
17
+ command: go mod download
18
+ - save_cache:
19
+ key: go-mod-v4-{{ checksum "go.sum" }}
20
+ paths:
21
+ - "/go/pkg/mod"
22
23
+ name: Run tests
24
+ command: |
25
+ mkdir -p /tmp/test-reports
26
+ gotestsum --junitfile /tmp/test-reports/unit-tests.xml
27
+ - store_test_results:
28
+ path: /tmp/test-reports
29
30
+workflows:
31
+ workflowbuild:
32
+ jobs:
33
+ - build
0 commit comments