blob: 1ad2fc99164390ef42b8731f8a1187b0e99abc35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
version: 2.1
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/golang:1.15.8
steps:
- checkout
- restore_cache:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
- run:
name: Install Dependencies
command: go mod download
- save_cache:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- run: go get -u golang.org/x/lint/golint
- run:
name: Run tests
command: make ci-test
- run:
name: Upload coverage report
command: bash <(curl -s https://codecov.io/bash)
|