Skip to content
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
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ commands:
rm -rf go*.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> $BASH_ENV
echo 'export PATH=$PATH:~/go/bin' >> $BASH_ENV
mkdir ~/go
echo 'export GOPATH=~/go' >> $BASH_ENV

quay-login:
description: Log Docker agent into Quay.io
Expand Down Expand Up @@ -72,6 +74,10 @@ jobs:
steps:
- checkout
- install-go
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- go-mod-v1-
- run:
name: Install Linting Tools
command: |
Expand All @@ -81,6 +87,10 @@ jobs:
- run:
name: Lint
command: make lint
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "~/go/pkg/mod"

test:
machine:
Expand All @@ -89,6 +99,10 @@ jobs:
steps:
- checkout
- install-go
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- go-mod-v1-
- run:
name: Initialize Credentials
command: |
Expand All @@ -110,6 +124,10 @@ jobs:
- run:
name: Go Tests
command: make test
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "~/go/pkg/mod"

build-and-upload-cli:
docker:
Expand Down