Skip to content

Commit 7378dfd

Browse files
authored
add nilaway (#39)
1 parent b0e61d9 commit 7378dfd

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/workflow.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ jobs:
2323
- name: Test
2424
run: make test
2525

26-
- name: Upload coverage to Codecov
27-
uses: codecov/codecov-action@v2
28-
with:
29-
files: ./coverage.txt
30-
fail_ci_if_error: true
26+
# TODO: fix
27+
# - name: Upload coverage to Codecov
28+
# uses: codecov/codecov-action@v4
29+
# with:
30+
# files: ./coverage.txt
31+
# fail_ci_if_error: true
32+
# token: ${{ secrets.CODECOV_TOKEN }}
3133

3234
lint:
3335
name: lint

Makefile

+13-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,21 @@ GOLINT = $(GOPATH)/bin/golangci-lint
1414
$(GOLINT):
1515
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.52.0
1616

17-
.PHONY: lint
18-
lint: $(GOLINT)
17+
NILAWAY = $(GOPATH)/bin/nilaway
18+
$(NILAWAY):
19+
go install go.uber.org/nilaway/cmd/nilaway@latest
20+
21+
.PHONY: golint
22+
golint: $(GOLINT)
1923
$(GOLINT) run
2024

25+
.PHONY: nilaway
26+
nilaway: $(NILAWAY)
27+
$(NILAWAY) -include-pkgs="github.com/vtopc/go-monobank" -test=false ./...
28+
29+
.PHONY: lint
30+
lint: golint nilaway
31+
2132
.PHONY: update-api
2233
update-api: ## Upgrade deps
2334
go get github.com/vtopc/go-rest

0 commit comments

Comments
 (0)