blob: f5ad793aee65d0069d5955ae07fc790ba8a0c28c [file] [log] [blame]
version: 2.1
orbs:
go: gotest/tools@0.0.14
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:
name: go/golang
tag: 1.18-alpine
steps:
- checkout
- go/install-golangci-lint:
prefix: v1.45.2
version: 1.45.2
- go/install: {package: git}
- run:
name: Lint
command: golangci-lint run -v --concurrency 2