Skip to content

Commit

Permalink
make node tests optional
Browse files Browse the repository at this point in the history
  • Loading branch information
aimee-889 committed Mar 11, 2024
1 parent 3395be9 commit c07240e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release-image-and-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand Down

0 comments on commit c07240e

Please sign in to comment.