1
0
mirror of https://github.com/hexolan/stocklet.git synced 2026-12-01 03:09:10 +00:00

ci: base usage for golangci-lint

Signed-off-by: Declan Teevan <dt@hexolan.com>
This commit is contained in:
2026-11-19 06:13:50 +00:00
parent a275b6db17
commit c8959e7ee0
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -1,6 +1,8 @@
install-tools: install-tools:
go install github.com/bufbuild/buf/cmd/buf@v1.27.2 go install github.com/bufbuild/buf/cmd/buf@v1.27.2
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.17.0 go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.17.0
# linting (todo: os-agnostic installation)
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.15.0
generate-protobufs: generate-protobufs:
buf generate buf generate
+2 -2
View File
@@ -1,6 +1,6 @@
pre-commit: pre-commit:
jobs: jobs:
- name: lint codebase - name: lint go codebase
run: gofmt -e . run: golangci-lint run
- name: lint protobufs - name: lint protobufs
run: buf lint run: buf lint