Skip to content

Commit df331e0

Browse files
committed
Add .circleci/config.yml
1 parent 6616ff4 commit df331e0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
- run:
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

Comments
 (0)