Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Rebuild plugin_test in the Makefile #108

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,25 @@ HAS_DOCKER=$(shell command -v docker;)
.PHONY: all
all: quality test

.PHONY: test
test:
.PHONY: test-go
test-go:
go test -race -coverprofile=coverage.out -covermode=atomic

.PHONY: build-docker-test
build-docker-test:
ifneq (${HAS_DOCKER},)
docker-compose build plugin_test
endif

.PHONY: test-docker
test-docker: build-docker-test
ifneq (${HAS_DOCKER},)
docker-compose run --rm plugin_test
endif

.PHONY: test
test: test-go test-docker

.PHONY: quality
quality:
go vet
Expand Down