Skip to content

Commit

Permalink
Update linting for gha
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Oct 8, 2024
1 parent e32c71c commit 0b0ce9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: actions/checkout@v4
- name: Install dependencies
run: make deps
- name: Update path
run: export PATH=$PATH:$(go env GOPATH)/bin"
- name: Run tests
run: make lint
build:
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ALL_FLAGS=CGO_CFLAGS=$(CGO_CFLAGS) CGO_LDFLAGS=$(CGO_LDFLAGS) PYTHONPATH=$(PYTHO
PROTO_OPTS=--proto_path=protos --go_out=paths=source_relative:protos

deps/dev:
${GO} install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
${GO} install honnef.co/go/tools/cmd/staticcheck@latest
${GO} install github.com/google/yamlfmt/cmd/yamlfmt@latest

Expand All @@ -29,7 +29,6 @@ deps/go:
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc
${GO} mod tidy
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.61.0


deps-buf:
Expand Down

0 comments on commit 0b0ce9a

Please sign in to comment.