Skip to content

Commit

Permalink
Bump go version to 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBaeumer authored and dylanhitt committed Jul 3, 2022
1 parent fa412bf commit 6ab1740
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ runOnDefaultBranchAndTags: &runOnDefaultBranchAndTags
jobs:
style:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
steps:
- checkout
- run: go vet ./...
- run: if [ $(go fmt ./... | wc -l) -eq 0 ]; then exit 0; else echo "please run go fmt ./..."; exit 1; fi

test:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17

steps:
- checkout
Expand All @@ -53,11 +53,15 @@ jobs:
steps:
- checkout
- run: choco install make
<<<<<<< HEAD
=======
- run: choco install golang --version 1.17
>>>>>>> 5fd066b (Bump go version to 1.17)
- run: make test

integration:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
steps:
- checkout
- setup_remote_docker:
Expand All @@ -78,14 +82,18 @@ jobs:
- checkout
- run: choco install make
- run: choco install curl
<<<<<<< HEAD
=======
- run: choco install golang --version 1.17
>>>>>>> 5fd066b (Bump go version to 1.17)
- run: Invoke-WebRequest -Uri "https://github.com/commander-cli/commander/releases/download/v2.4.0/commander-darwin-amd64" -OutFile "C:\Windows\system32\commander.exe"
- run: make integration-windows

deploy:
environment:
GIT_RELEASE_TAG: << pipeline.git.tag >>
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
steps:
- checkout
- run: go install github.com/tcnksm/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/commander-cli/commander/v2

go 1.16
go 1.17

require (
github.com/Microsoft/go-winio v0.4.16 // indirect
Expand Down

0 comments on commit 6ab1740

Please sign in to comment.