Skip to content

Commit

Permalink
add nilaway (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc authored Apr 11, 2024
1 parent b0e61d9 commit 7378dfd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ jobs:
- name: Test
run: make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.txt
fail_ci_if_error: true
# TODO: fix
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# files: ./coverage.txt
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}

lint:
name: lint
Expand Down
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,21 @@ GOLINT = $(GOPATH)/bin/golangci-lint
$(GOLINT):
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.52.0

.PHONY: lint
lint: $(GOLINT)
NILAWAY = $(GOPATH)/bin/nilaway
$(NILAWAY):
go install go.uber.org/nilaway/cmd/nilaway@latest

.PHONY: golint
golint: $(GOLINT)
$(GOLINT) run

.PHONY: nilaway
nilaway: $(NILAWAY)
$(NILAWAY) -include-pkgs="github.com/vtopc/go-monobank" -test=false ./...

.PHONY: lint
lint: golint nilaway

.PHONY: update-api
update-api: ## Upgrade deps
go get github.com/vtopc/go-rest
Expand Down

0 comments on commit 7378dfd

Please sign in to comment.