Skip to content

Commit 01e590b

Browse files
committed
add unit tests
1 parent ca8fc6d commit 01e590b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/code-health.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
go-version-file: 'go.mod'
1919
- name: Build
2020
run: make build
21+
- name: Unit Test
22+
run: make test
2123
lint:
2224
runs-on: ubuntu-latest
2325
permissions: {}

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ tools: ## Install the dev tools (dependencies)
2323
clean: ## Clean binary folders
2424
rm -rf ./bin ./bin-plugin
2525

26+
.PHONY: test
27+
test: ## Run unit tests
28+
go test ./... -timeout=30s -parallel=4 -race
29+
30+
.PHONY: test-update
31+
test-update: ## Run unit tests and update the golden files
32+
go test ./... -timeout=30s -parallel=4 -race -update
33+
2634
.PHONY: local
2735
local: clean build ## Allow to run the plugin locally
2836
@echo "==> Configuring plugin locally"

0 commit comments

Comments
 (0)