-
Notifications
You must be signed in to change notification settings - Fork 305
/
config.yml
59 lines (56 loc) · 1.07 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:
lint:
docker:
- image: cimg/go:1.22
steps:
- checkout
- run: make check_license
- run: ./scripts/check_build_tags.sh
- run: make fixtures
- run: make update_fixtures
- run: make style
- run: git diff --exit-code
test:
parameters:
go_version:
type: string
os:
type: string
run_test:
type: boolean
default: true
docker:
- image: cimg/go:<< parameters.go_version >>
environment:
GOOS: "<< parameters.os >>"
steps:
- checkout
- run: make lint
- when:
condition: << parameters.run_test >>
steps:
- run: make test
workflows:
version: 2
procfs:
jobs:
- lint
- test:
name: test-linux
os: linux
matrix:
parameters:
go_version:
- "1.21"
- "1.22"
- test:
name: test-windows
os: windows
run_test: false
matrix:
parameters:
go_version:
- "1.21"
- "1.22"