Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #36 from erneliojuniorzup/feature/lint
Browse files Browse the repository at this point in the history
Feature/lint
  • Loading branch information
viniciusramosdefaria authored Apr 17, 2020
2 parents 49ae4c2 + 8d4c64d commit d9bd849
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,21 @@ executors:
working_directory: /workspace

jobs:

# Runs Go linters
lint:
executor: ritchie-executor
steps:
- checkout
- run:
name: Install golangci-lint
command: |
download=https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
wget -O- -q $download | sh -s -- -b /go/bin/ v1.24.0
- run: go mod download
- run:
name: lint
command: &lintcmd |
/go/bin/golangci-lint run
test:
executor: ritchie-executor
environment:
Expand Down Expand Up @@ -123,6 +137,9 @@ jobs:
workflows:
build_and_test:
jobs:
- lint:
filters:
<<: *FILTERS
- test:
filters:
<<: *FILTERS
Expand All @@ -131,6 +148,7 @@ workflows:
<<: *FILTERS
requires:
- test
- lint
- delivery:
filters:
<<: *FILTERS
Expand All @@ -140,4 +158,4 @@ workflows:
filters:
<<: *FILTERS_RELEASE
requires:
- build
- build

0 comments on commit d9bd849

Please sign in to comment.