From 87beaa7eac7afad3d7937f7e389980faca1fb135 Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Sat, 29 Jan 2022 17:32:56 +0100 Subject: [PATCH] build: also run unit-tests Signed-off-by: Christian Kotzbauer --- .github/workflows/test.yml | 3 +++ Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 90b40a0b..dfec81fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,9 @@ jobs: - name: Build binary run: make build + - name: Unit tests + run: make test + - name: Build image uses: docker/build-push-action@v2 with: diff --git a/Makefile b/Makefile index 43dde332..b82e986b 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,6 @@ vet: test-registries: go test github.com/ckotzbauer/sbom-operator/internal/registry + +test: + go test github.com/ckotzbauer/sbom-operator/internal/syft