Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 0f49f1c

Browse files
Merge pull request #275 from secrethub/feature/replace-golanci.com
Move linting to CircleCI
2 parents ef2656e + 99e9345 commit 0f49f1c

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
version: 2
22
jobs:
3+
lint:
4+
docker:
5+
- image: golangci/golangci-lint:v1.23.8-alpine
6+
steps:
7+
- checkout
8+
- run: golangci-lint run
39
test:
410
docker:
511
- image: circleci/golang:1.13
@@ -24,5 +30,6 @@ workflows:
2430
version: 2
2531
pipeline:
2632
jobs:
33+
- lint
2734
- test
2835
- verify-goreleaser

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ tools: format-tools lint-tools
1414
format-tools:
1515
@go get -u golang.org/x/tools/cmd/goimports
1616

17+
GOLANGCI_VERSION=v1.23.8
18+
1719
lint-tools:
18-
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.15.0
20+
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_VERSION}
1921

2022
COMMIT=`git rev-parse --short HEAD`
2123
VERSION=`git describe --always`

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
[![GoDoc](https://godoc.org/github.com/secrethub/secrethub-cli?status.svg)][godoc]
99
[![CircleCI](https://circleci.com/gh/secrethub/secrethub-cli.svg?style=shield)][circle-ci]
10-
[![GolangCI](https://golangci.com/badges/github.com/secrethub/secrethub-cli.svg)][golang-ci]
1110
[![Go Report Card](https://goreportcard.com/badge/github.com/secrethub/secrethub-cli)][goreportcard]
1211
[![Version]( https://img.shields.io/github/release/secrethub/secrethub-cli.svg)][latest-version]
1312
[![Discord](https://img.shields.io/badge/chat-on%20discord-7289da.svg?logo=discord)][discord]
@@ -101,7 +100,6 @@ Run a single test:
101100
[releases]: https://github.com/secrethub/secrethub-cli/releases
102101
[latest-version]: https://github.com/secrethub/secrethub-cli/releases/latest
103102
[godoc]: http://godoc.org/github.com/secrethub/secrethub-cli
104-
[golang-ci]: https://golangci.com/r/github.com/secrethub/secrethub-cli
105103
[goreportcard]: https://goreportcard.com/report/github.com/secrethub/secrethub-cli
106104
[circle-ci]: https://circleci.com/gh/secrethub/secrethub-cli
107105
[discord]: https://discord.gg/gyQXAFU

0 commit comments

Comments
 (0)