...
1version: 2.1
2
3orbs:
4 go: gotest/tools@0.0.14
5
6workflows:
7 ci:
8 jobs:
9 - lint
10 - go/test:
11 name: test-golang-1.20
12 executor:
13 name: go/golang
14 tag: 1.20-alpine
15 post-steps: &xgenerics
16 - run:
17 name: "test x/generics"
18 working_directory: ./x/generics
19 command: gotestsum -ftestname
20 - go/test:
21 name: test-golang-1.21
22 executor:
23 name: go/golang
24 tag: 1.21-alpine
25 post-steps: *xgenerics
26 - go/test:
27 name: test-golang-1.22
28 executor:
29 name: go/golang
30 tag: 1.22-alpine
31 post-steps: *xgenerics
32 - go/test:
33 name: test-golang-1.23
34 executor:
35 name: go/golang
36 tag: 1.23-alpine
37 post-steps: *xgenerics
38 - go/test:
39 name: test-windows
40 executor: windows
41 pre-steps:
42 - run: |
43 git config --global core.autocrlf false
44 git config --global core.symlinks true
45 - run: |
46 choco upgrade golang
47 echo 'export PATH="$PATH:/c/Program Files/Go/bin"' > $BASH_ENV
48 - run: go version
49 - run: go install gotest.tools/gotestsum@latest
50 post-steps: *xgenerics
51
52executors:
53 windows:
54 machine:
55 image: windows-server-2019-vs2019:stable
56 resource_class: windows.medium
57 shell: bash.exe
58
59jobs:
60
61 lint:
62 executor:
63 name: go/golang
64 tag: 1.23-alpine
65 steps:
66 - checkout
67 - go/install-golangci-lint:
68 prefix: v1.60.3
69 version: 1.60.3
70 - go/install: {package: git}
71 - run:
72 name: Lint
73 command: golangci-lint run -v --concurrency 2
74 - run:
75 name: Lint x/generics
76 working_directory: ./x/generics
77 command: golangci-lint run -v --concurrency 2
View as plain text