forked from pomerium/ingress-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ingress-controller/ci: upgrade golangci-lint (pomerium#836)
* ingress-controller/ci: upgrade golangci-lint * add deps
- Loading branch information
1 parent
83a8e63
commit 63ee403
Showing
6 changed files
with
35 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Lint | ||
permissions: | ||
contents: read | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: {} | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe | ||
with: | ||
go-version: 1.21.x | ||
cache: false | ||
|
||
- run: make envoy | ||
- run: make pomerium-ui | ||
|
||
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc | ||
with: | ||
version: v1.55 | ||
args: --timeout=10m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,9 +80,10 @@ test: envoy manifests generate fmt vet envtest ## Run tests. | |
@KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --arch=$(KUBEENV_GOARCH))" go test $(GOTAGS) ./... -coverprofile cover.out | ||
|
||
.PHONY: lint | ||
lint: envoy pomerium-ui ## Verifies `golint` passes. | ||
@echo "==> $@" | ||
@go run github.com/golangci/golangci-lint/cmd/golangci-lint run ./... | ||
lint: envoy pomerium-ui | ||
@echo "@==> $@" | ||
@VERSION=$$(go run github.com/mikefarah/yq/[email protected] '.jobs.lint.steps[] | select(.uses == "golangci/golangci-lint-action*") | .with.version' .github/workflows/lint.yml) && \ | ||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@$$VERSION run ./... | ||
|
||
##@ Build | ||
.PHONY: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.