Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/upgrade dependencies #156

Merged
merged 9 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Run Unit tests
run: make test
- name: Upload logs
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Run integration tests
uses: nick-fields/retry@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
-
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
-
name: Build and generate docs
run: make docs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
-
name: setup-snapcraft
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
Expand All @@ -42,4 +42,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
AUR_SSH_PRIVATE_KEY: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
# snapcraft export-login --snaps kafkactl --channels edge,beta,candidate,stable -
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# .golangci.yml

run:
# Timeout for analysis, e.g. 30s, 5m.
# Default: 1m
timeout: 3m

linters:
enable:
- gofmt
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.48.0
rev: v1.54.1
hooks:
- id: golangci-lint
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ TESTS := $(shell find . -name '*.go' -type f -not -name '*.pb.go' -not -name

.DEFAULT_GOAL := all
.PHONY: all
all: vet fmt lint test build docs

.PHONY: vet
vet:
go vet ./...
all: fmt lint cve-check test build docs

fmt:
gofmt -s -l -w $(FILES) $(TESTS)
Expand All @@ -27,6 +23,10 @@ fmt:
lint:
golangci-lint run

.PHONY: cve-check
cve-check:
govulncheck ./...

.PHONY: test
test:
rm -f test.log
Expand Down
Loading
Loading