From c07240e3e9162d9b1a7389cc12f6c870a62e7a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aimee=20Wei=C3=9F?= Date: Mon, 11 Mar 2024 09:40:02 +0100 Subject: [PATCH] make node tests optional --- .../workflows/release-image-and-helm-chart.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-image-and-helm-chart.yaml b/.github/workflows/release-image-and-helm-chart.yaml index 84b86a9..47b0b76 100644 --- a/.github/workflows/release-image-and-helm-chart.yaml +++ b/.github/workflows/release-image-and-helm-chart.yaml @@ -14,16 +14,21 @@ on: type: string description: "Provide Helm Chart name" required: true - deploy_stage: - type: string - description: "Provide Deploy Stage" + node_project: + type: bool + description: "Node Image? If yes set to 'true'. Default: false" required: false - default: "" + default: False node_version: type: string - description: "Provide Node Version" + description: "Provide Node Version. Default: 18" required: false default: '18' + deploy_stage: + type: string + description: "Provide Deploy Stage. Default: empty" + required: false + default: "" jobs: # GHRC Image @@ -37,6 +42,7 @@ jobs: nest_lint: name: "Linting" + if: ${{ inputs.node_project == 'true' }} uses: dBildungsplattform/dbp-github-workflows/.github/workflows/check-nest-lint.yaml@5 with: node_version: "${{ inputs.node_version }}" @@ -45,6 +51,7 @@ jobs: tests_and_sonarcloud: name: "Tests and Sonarcloud" + if: ${{ inputs.node_project == 'true' }} uses: dBildungsplattform/dbp-github-workflows/.github/workflows/check-nest-test-sonarcloud.yaml@5 with: node_version: "${{ inputs.node_version }}"