Skip to content

Commit 16efb91

Browse files
committed
Makefile: add target richtest
1 parent 4305498 commit 16efb91

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
go install github.com/kyoh86/richgo"${_version}"
8989
go install github.com/mitchellh/gox"${_version}"
9090
91-
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make test
91+
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make richtest
9292

9393

9494
test-win:
@@ -125,4 +125,4 @@ jobs:
125125
go install github.com/kyoh86/richgo@latest
126126
go install github.com/mitchellh/gox@latest
127127
128-
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin:$PATH make test
128+
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin:$PATH make richtest

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ ifeq (, $(shell which golangci-lint))
55
$(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh")
66
endif
77

8-
ifeq (, $(shell which richgo))
9-
$(warning "could not find richgo in $(PATH), run: go install github.com/kyoh86/richgo@latest")
10-
endif
11-
128
.PHONY: fmt lint test install_deps clean
139

1410
default: all
@@ -25,6 +21,10 @@ lint:
2521

2622
test: install_deps
2723
$(info ******************** running tests ********************)
24+
go test -v ./...
25+
26+
richtest: install_deps
27+
$(info ******************** running tests with kyoh86/richgo ********************)
2828
richgo test -v ./...
2929

3030
install_deps:

0 commit comments

Comments
 (0)