Skip to content

Commit

Permalink
.circleci/config.yml: enable Go 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpasquier committed Sep 6, 2019
1 parent 420aea6 commit ca58287
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .circleci/config.yml
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:
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.17.1
- 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: /.*/

0 comments on commit ca58287

Please sign in to comment.