/
config.yml
61 lines (56 loc) · 1.34 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
60
61
version: 2.1
orbs:
go: gotest/tools@0.0.13
workflows:
ci:
jobs:
- lint
- go/test:
name: test-golang-1.15
executor:
name: go/golang
tag: 1.15-alpine
- go/test:
name: test-golang-1.16
executor:
name: go/golang
tag: 1.16-alpine
- go/test:
name: test-golang-1.17
executor:
name: go/golang
tag: 1.17-alpine
- go/test:
name: test-golang-1.18
executor:
name: go/golang
tag: 1.18-alpine
- go/test:
name: test-windows
executor: windows
pre-steps:
- run: |
git config --global core.autocrlf false
git config --global core.symlinks true
- run: |
choco upgrade golang
echo 'export PATH="$PATH:/c/Program Files/Go/bin"' > $BASH_ENV
- run: go version
executors:
windows:
machine:
image: windows-server-2019-vs2019:stable
resource_class: windows.medium
shell: bash.exe
jobs:
lint:
executor: go/golang
steps:
- checkout
- go/install-golangci-lint:
prefix: v2
version: 1.21.0
- run:
name: Lint
command: |
golangci-lint run -v --concurrency 2