Skip to content

Commit

Permalink
Docs for running lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dpup committed Apr 19, 2024
1 parent f6069a2 commit 9efafbf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
SHELL := /bin/bash

.PHONY: all testdata

all: testdata
.PHONY: all
all: testdata lint test

.PHONY: testdata
testdata:
go install
@export PATH=$$PATH:$$(go env GOPATH)/bin; \
cd testdata && protoc -I . \
--grpc-gateway-ts_out=logtostderr=true:./ \
log.proto environment.proto ./datasource/datasource.proto

.PHONY: lint
lint:
golangci-lint run

.PHONY: test
test:
go test ./...
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,16 @@ async function increaseRepeatedly(base: number): Promise<number[]> {

## Development

Required dependencies:

```
brew install typescript
brew install golangci-lint
```

To run tests:

```
brew install typescript # OPTIONAL
make testdata
go test ./...`
```
Expand Down

0 comments on commit 9efafbf

Please sign in to comment.