syntax fix
This commit is contained in:
parent
6443603f33
commit
18b5fdbe79
@ -1,62 +1,68 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
alias:
|
|
||||||
&setup-steps:
|
|
||||||
- run: go get ./...
|
|
||||||
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
|
|
||||||
&pipeline-steps:
|
|
||||||
- run:
|
|
||||||
name: run static analysis & tests
|
|
||||||
command: make ci
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
golang-1.11-pipeline:
|
golang-1.11-pipeline:
|
||||||
working_directory: /go/src/github.com/wagoodman/dive
|
working_directory: /home/circleci/app
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.11
|
- image: circleci/golang:1.11
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- golang-1.11-{{ checksum "go.sum" }}
|
- golang-1.11-{{ checksum "go.sum" }}
|
||||||
- *setup-steps
|
- run: go get ./...
|
||||||
|
- 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:
|
||||||
- "/go/pkg/mod"
|
- "/go/pkg/mod"
|
||||||
- *pipeline-steps
|
- run:
|
||||||
|
name: run static analysis & tests
|
||||||
|
command: make ci
|
||||||
|
|
||||||
golang-1.12-pipeline:
|
golang-1.12-pipeline:
|
||||||
working_directory: /go/src/github.com/wagoodman/dive
|
working_directory: /home/circleci/app
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12
|
- image: circleci/golang:1.12
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- golang-1.12-{{ checksum "go.sum" }}
|
- golang-1.12-{{ checksum "go.sum" }}
|
||||||
- *setup-steps
|
- run: go get ./...
|
||||||
|
- 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:
|
||||||
- "/go/pkg/mod"
|
- "/go/pkg/mod"
|
||||||
- *pipeline-steps
|
- run:
|
||||||
|
name: run static analysis & tests
|
||||||
|
command: make ci
|
||||||
|
|
||||||
golang-1.13-pipeline:
|
golang-1.13-pipeline:
|
||||||
working_directory: /go/src/github.com/wagoodman/dive
|
working_directory: /home/circleci/app
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.13
|
- image: circleci/golang:1.13
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- golang-1.13-{{ checksum "go.sum" }}
|
- golang-1.13-{{ checksum "go.sum" }}
|
||||||
- *setup-steps
|
- run: go get ./...
|
||||||
|
- 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:
|
||||||
- "/go/pkg/mod"
|
- "/go/pkg/mod"
|
||||||
- *pipeline-steps
|
- run:
|
||||||
|
name: run static analysis & tests
|
||||||
|
command: make ci
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user