-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.circleci/config.yml: enable Go 1.13 (#8)
* .circleci/config.yml: enable Go 1.13 * Install golangci-lint from source See golangci/golangci-lint#652 * Quote "on" * s/go install/go get/ * Use golangci-lint master * Add go stanza to go.mod * use golangci-lint v1.18.0 Signed-off-by: Simon Pasquier <[email protected]>
- Loading branch information
1 parent
420aea6
commit dda81c2
Showing
3 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
jobs: | ||
build: | ||
parameters: | ||
golang_version: | ||
type: string | ||
|
||
docker: | ||
- image: circleci/golang:1.12 | ||
- image: circleci/golang:<< parameters.golang_version >> | ||
|
||
env: | ||
GO111MODULE: on | ||
environment: | ||
GO111MODULE: "on" | ||
|
||
steps: | ||
- checkout | ||
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0 | ||
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0 | ||
- run: go mod download | ||
- run: golangci-lint run | ||
- run: go test -v ./... | ||
|
||
workflows: | ||
version: 2 | ||
main: | ||
jobs: | ||
- build: | ||
name: go1.12 | ||
golang_version: "1.12" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- build: | ||
name: go1.13 | ||
golang_version: "1.13" | ||
filters: | ||
tags: | ||
only: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters