Skip to content

Commit b3dfa21

Browse files
Add .circleci/config.yml (#21)
1 parent b50c348 commit b3dfa21

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.circleci/config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
2+
version: 2.1
3+
jobs:
4+
build:
5+
working_directory: ~/repo
6+
docker:
7+
- image: circleci/golang:1.15.8
8+
steps:
9+
- checkout
10+
- restore_cache:
11+
keys:
12+
- go-mod-v4-{{ checksum "go.sum" }}
13+
- run:
14+
name: Install Dependencies
15+
command: go mod download
16+
- save_cache:
17+
key: go-mod-v4-{{ checksum "go.sum" }}
18+
paths:
19+
- "/go/pkg/mod"
20+
- run:
21+
name: Run tests
22+
command: |
23+
mkdir -p /tmp/test-reports
24+
gotestsum --junitfile /tmp/test-reports/unit-tests.xml
25+
- store_test_results:
26+
path: /tmp/test-reports

0 commit comments

Comments
 (0)