File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Use the latest 2.1 version of CircleCI pipeline process engine.
2
+ # See: https://circleci.com/docs/2.0/configuration-reference
3
+ version : 2.1
4
+
5
+ # Define a job to be invoked later in a workflow.
6
+ # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
7
+ jobs :
8
+ build :
9
+ working_directory : ~/repo
10
+ # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
11
+ # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
12
+ docker :
13
+ - image : circleci/golang:1.15.8
14
+ # Add steps to the job
15
+ # See: https://circleci.com/docs/2.0/configuration-reference/#steps
16
+ steps :
17
+ - checkout
18
+ - restore_cache :
19
+ keys :
20
+ - go-mod-v4-{{ checksum "go.sum" }}
21
+ - run :
22
+ name : Install Dependencies
23
+ command : go mod download
24
+ - save_cache :
25
+ key : go-mod-v4-{{ checksum "go.sum" }}
26
+ paths :
27
+ - " /go/pkg/mod"
28
+ # - run:
29
+ # name: Run linter
30
+ # command: |
31
+ # go run build/ci.go lint
32
+ - run :
33
+ name : Run tests
34
+ command : |
35
+ go run build/ci.go test -coverage
36
+ - store_test_results :
37
+ path : /tmp/test-reports
38
+
39
+ # Invoke jobs via workflows
40
+ # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
41
+ workflows :
42
+ sample : # This is the name of the workflow, feel free to change it to better match your workflow.
43
+ # Inside the workflow, you define the jobs you want to run.
44
+ jobs :
45
+ - build
You can’t perform that action at this time.
0 commit comments