From 8f2bd394a170aef119a14de0634d14f8ec4fd32a Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Fri, 13 Oct 2023 09:42:43 +0200 Subject: [PATCH] Call unit tests --- .github/workflows/build-go.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ docker-bake.hcl | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/build-go.yml b/.github/workflows/build-go.yml index 4c8e450c..7f70ffb5 100644 --- a/.github/workflows/build-go.yml +++ b/.github/workflows/build-go.yml @@ -35,6 +35,10 @@ jobs: run: | docker buildx bake vet + - name: Unit tests + run: | + docker buildx bake test + - name: Build binary run: | docker buildx bake binary diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b006712..7e9254f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,10 @@ jobs: run: | docker buildx bake vet + - name: Unit tests + run: | + docker buildx bake test + - name: Build and release binaries env: GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} diff --git a/docker-bake.hcl b/docker-bake.hcl index 246da00e..048ee043 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -14,4 +14,8 @@ target "lint" { target "vet" { target = "vet" +} + +target "test" { + target = "unit-test" } \ No newline at end of file