golang 1.13 support for linting
This commit is contained in:
parent
a27a61e094
commit
9236307e29
@ -12,8 +12,7 @@ jobs:
|
|||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- golang-1.11-{{ checksum "go.sum" }}
|
- golang-1.11-{{ checksum "go.sum" }}
|
||||||
- run: go get ./...
|
- run: make setup
|
||||||
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: golang-1.11-{{ checksum "go.sum" }}
|
key: golang-1.11-{{ checksum "go.sum" }}
|
||||||
paths:
|
paths:
|
||||||
@ -33,8 +32,7 @@ jobs:
|
|||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- golang-1.12-{{ checksum "go.sum" }}
|
- golang-1.12-{{ checksum "go.sum" }}
|
||||||
- run: go get ./...
|
- run: make setup
|
||||||
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: golang-1.12-{{ checksum "go.sum" }}
|
key: golang-1.12-{{ checksum "go.sum" }}
|
||||||
paths:
|
paths:
|
||||||
@ -54,8 +52,7 @@ jobs:
|
|||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- golang-1.13-{{ checksum "go.sum" }}
|
- golang-1.13-{{ checksum "go.sum" }}
|
||||||
- run: go get ./...
|
- run: make setup
|
||||||
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: golang-1.13-{{ checksum "go.sum" }}
|
key: golang-1.13-{{ checksum "go.sum" }}
|
||||||
paths:
|
paths:
|
||||||
|
4
Makefile
4
Makefile
@ -41,6 +41,10 @@ lint: build
|
|||||||
generate-test-data:
|
generate-test-data:
|
||||||
docker build -t dive-test:latest -f .data/Dockerfile.test-image . && docker image save -o .data/test-docker-image.tar dive-test:latest && echo "Exported test data!"
|
docker build -t dive-test:latest -f .data/Dockerfile.test-image . && docker image save -o .data/test-docker-image.tar dive-test:latest && echo "Exported test data!"
|
||||||
|
|
||||||
|
setup:
|
||||||
|
go get ./...
|
||||||
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.18.0
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
go clean
|
go clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user