Skip to content

Commit 78b6b88

Browse files
committed
chore(ci): Test code before running bootstrap workflow 3
Signed-off-by: Hayden Roszell <[email protected]>
1 parent 648cdcc commit 78b6b88

File tree

3 files changed

+28
-36
lines changed

3 files changed

+28
-36
lines changed

.github/workflows/keyfactor-bootstrap-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
cache: true
2424
- run: go mod download
2525
- run: go build -v ./cmd/main.go
26-
- name: Run linters
27-
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
28-
with:
29-
version: latest
26+
# - name: Run linters
27+
# uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
28+
# with:
29+
# version: latest
3030

3131
test:
3232
name: Go Test

.golangci.yml

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,32 @@
11
run:
2-
deadline: 5m
3-
allow-parallel-runners: true
2+
# timeout for analysis, e.g. 30s, 5m, default is 1m
3+
timeout: 12m
4+
5+
skip-dirs:
6+
- testdata$
7+
- test/mock
8+
- go/pkg/mod
9+
10+
skip-files:
11+
- ".*\\.pb\\.go"
412

5-
issues:
6-
# don't skip warning about doc comments
7-
# don't exclude the default set of lint
8-
exclude-use-default: false
9-
# restore some of the defaults
10-
# (fill in the rest as needed)
11-
exclude-rules:
12-
- path: "api/*"
13-
linters:
14-
- lll
15-
- path: "internal/*"
16-
linters:
17-
- dupl
18-
- lll
1913
linters:
20-
disable-all: true
2114
enable:
22-
- dupl
23-
- errcheck
24-
- exportloopref
25-
- goconst
26-
- gocyclo
27-
- gofmt
15+
- bodyclose
16+
- durationcheck
17+
- errorlint
2818
- goimports
29-
- gosimple
30-
- govet
31-
- ineffassign
32-
- lll
19+
- revive
20+
- gosec
3321
- misspell
3422
- nakedret
35-
- prealloc
36-
- staticcheck
37-
- typecheck
3823
- unconvert
3924
- unparam
40-
- unused
25+
- whitespace
26+
- gocritic
27+
- nolintlint
28+
29+
linters-settings:
30+
revive:
31+
# minimal confidence for issues, default is 0.8
32+
confidence: 0.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint-$(GOLANGCI_LINT_VERSION)
166166
KUSTOMIZE_VERSION ?= v5.3.0
167167
CONTROLLER_TOOLS_VERSION ?= v0.14.0
168168
ENVTEST_VERSION ?= latest
169-
GOLANGCI_LINT_VERSION ?= v1.54.2
169+
GOLANGCI_LINT_VERSION ?= v1.60.1
170170

171171
.PHONY: kustomize
172172
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

0 commit comments

Comments
 (0)