Skip to content

Commit

Permalink
Moved golangci-lint to the new job
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed Nov 6, 2021
1 parent 3adad4a commit e42c495
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
- name: Upload results to codecov
run: bash <(curl -s https://codecov.io/bash) -t 48d6a1a8-a66e-4f27-9cc1-a7b91c4209b2

- name: golangci-lint
uses: golangci/golangci-lint-action@v2

- name: Docker images
run: make docker-build

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: golangci-lint
on:
push:
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.43.0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test: ## run tests
go test -v -coverprofile=coverage.txt -covermode=atomic -cover ./...

lint: build ## run golangcli-lint checks
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43.0
$(shell go env GOPATH)/bin/golangci-lint run

run: build ## Build and run binary
Expand Down

0 comments on commit e42c495

Please sign in to comment.