seperated test and build jobs

Signed-off-by: Rahul Somasundaram <ssrahul96@gmail.com>
pull/10238/head
Rahul Somasundaram 4 years ago
parent fe231d674b
commit 58689d9053
No known key found for this signature in database
GPG Key ID: 466FF35FC278207A

@ -6,7 +6,7 @@ orbs:
azure-cli: circleci/azure-cli@1.0.0 azure-cli: circleci/azure-cli@1.0.0
jobs: jobs:
build: test:
working_directory: ~/helm.sh/helm working_directory: ~/helm.sh/helm
docker: docker:
- image: circleci/golang:1.16 - image: circleci/golang:1.16
@ -30,6 +30,21 @@ jobs:
- run: - run:
name: test name: test
command: make test-coverage command: make test-coverage
build:
working_directory: ~/helm.sh/helm
docker:
- image: circleci/golang:1.16
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
environment:
GOCACHE: "/tmp/go/cache"
GOLANGCI_LINT_VERSION: "1.36.0"
steps:
- checkout
- deploy: - deploy:
name: deploy name: deploy
command: .circleci/deploy.sh command: .circleci/deploy.sh
@ -72,14 +87,21 @@ workflows:
version: 2 version: 2
build: build:
jobs: jobs:
- test
- build: - build:
filters: filters:
branches:
only:
- main
tags: tags:
only: /.*/ only: /.*/
- generate-windows-installer: - generate-windows-installer:
requires: requires:
- build - build
filters: filters:
branches:
only:
- main
tags: tags:
only: /.*/ only: /.*/
- upload-binary: - upload-binary:
@ -87,5 +109,8 @@ workflows:
- build - build
- generate-windows-installer - generate-windows-installer
filters: filters:
branches:
only:
- main
tags: tags:
only: /.*/ only: /.*/
Loading…
Cancel
Save