From 8ba0ecbd9210ead6cff540afb189452313379986 Mon Sep 17 00:00:00 2001 From: Friedrich Wilken Date: Wed, 17 Jan 2024 23:49:24 +0100 Subject: [PATCH 1/3] add unit tests to `Create release` workflow --- .github/workflows/create-release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index c372a920..326bd8be 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -33,6 +33,10 @@ jobs: VERSION: ${{ steps.gen-version.outputs.VERSION }} run: ./scripts/check_sec-scanners-config.sh $VERSION + unit-test: + name: "Run unit tests" + uses: kyma-project/eventing-tools/.github/workflows/unit-test-reusable.yml@main + create-draft: name: Create draft release needs: verify-head-status From 52ff4fadf0a4f7cc972138c3437d67bcf8c643ed Mon Sep 17 00:00:00 2001 From: Friedrich Wilken Date: Wed, 17 Jan 2024 23:49:54 +0100 Subject: [PATCH 2/3] add a name to the regular unit test and rename the file --- .github/workflows/{test.yml => unit-test.yml} | 1 + 1 file changed, 1 insertion(+) rename .github/workflows/{test.yml => unit-test.yml} (94%) diff --git a/.github/workflows/test.yml b/.github/workflows/unit-test.yml similarity index 94% rename from .github/workflows/test.yml rename to .github/workflows/unit-test.yml index b65d46a7..ffb8c80e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/unit-test.yml @@ -24,4 +24,5 @@ on: jobs: unit-test: + name: "Run unit tests" uses: kyma-project/eventing-tools/.github/workflows/unit-test-reusable.yml@main From 0ce195cf2371eadc0dab2046c012c99262f0848f Mon Sep 17 00:00:00 2001 From: Friedrich Wilken Date: Thu, 18 Jan 2024 10:47:14 +0100 Subject: [PATCH 3/3] add golang linter to `Create release` --- .github/workflows/create-release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 326bd8be..7a069e1b 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -35,11 +35,17 @@ jobs: unit-test: name: "Run unit tests" + needs: verify-release uses: kyma-project/eventing-tools/.github/workflows/unit-test-reusable.yml@main + lint-golang: + name: "Run golangci-lint" + needs: verify-release + uses: kyma-project/eventing-tools/.github/workflows/lint-reusable.yml@main + create-draft: name: Create draft release - needs: verify-head-status + needs: [verify-release, lint-golang, unit-test] runs-on: ubuntu-latest env: VERSION: ${{ needs.verify-release.outputs.VERSION }} @@ -85,7 +91,7 @@ jobs: publish-release: name: Publish release - needs: [verify-head-status, create-draft] + needs: [verify-release, create-draft] runs-on: ubuntu-latest steps: