Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc: fix cache layer not used by CircleCI #6

Merged
merged 1 commit into from
Mar 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,23 @@ jobs:
- run:
name: Setup Dependencies
command: go mod download
- save_cache:
key: v1-kubectl-search-{{ checksum "go.mod" }}-source
paths:
- /go/pkg/mod
lint:
<<: *default_setup
steps:
- checkout
- restore_cache:
keys:
- v1-kubectl-search-{{ checksum "go.mod" }}-source
- run:
name: Run tests
command: |
go fmt ./...
go vet ./...
# go test -v ./...
- save_cache:
key: v1-kubectl-search-{{ checksum "go.mod" }}-source
paths:
- /go/pkg/mod
build:
<<: *default_setup
steps:
Expand Down Expand Up @@ -86,17 +93,24 @@ workflows:
- master
jobs:
- bootstrap
- build:
- lint:
requires:
- bootstrap
- build:
requires:
- lint
main-workflow:
jobs:
- bootstrap:
<<: *filter_master_or_tag_or_pr
- build:
- lint:
requires:
- bootstrap
<<: *filter_master_or_tag_or_pr
- build:
requires:
- lint
<<: *filter_master_or_tag_or_pr
- release:
requires:
- build
Expand Down