forked from wagoodman/dive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
59 lines (55 loc) · 1.42 KB
/
config.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: 2.1
jobs:
run-static-analyses:
parameters:
version:
type: string
working_directory: /home/circleci/app
docker:
- image: circleci/golang:<< parameters.version >>
environment:
GO111MODULE: "on"
steps:
- checkout
- restore_cache:
keys:
- golang-<< parameters.version >>-{{ checksum "go.sum" }}
- run: make ci-install-go-tools
- save_cache:
key: golang-<< parameters.version >>-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- run:
name: run static analysis
command: make ci-static-analysis
run-tests:
parameters:
version:
type: string
working_directory: /home/circleci/app
docker:
- image: circleci/golang:<< parameters.version >>
environment:
GO111MODULE: "on"
steps:
- checkout
- restore_cache:
keys:
- golang-<< parameters.version >>-{{ checksum "go.sum" }}
- run: make ci-install-go-tools
- save_cache:
key: golang-<< parameters.version >>-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- run:
name: run unit tests
command: make ci-unit-test
workflows:
commit:
jobs:
- run-static-analyses:
version: "1.15"
- run-tests:
version: "1.14"
- run-tests:
version: "1.15"