Untitled

mail@pastecode.io avatar
unknown
plain_text
9 days ago
1.7 kB
2
Indexable
Never
on:
  workflow_call:
    inputs:
      run-cdk-lint :
        description : Flag indicating whether cdk-lint should be run
        required : false
        type : boolean
        default : true
      run-lambda-lint :
        description : Flag indicating whether lambda-lint should be run
        required : false
        type : boolean
        default : true
      run-glue-lint :
        description : Flag indicating whether glue-lint should be run
        required : false
        type : boolean
        default : true
      run-cfn-nag:
        description: Flag indicating whether cfn-nag should be run
        required: false
        type: string
        default: Y
      node-version:
        description: The version of Node to use for IaC deployment
        required: false
        type: string
        default: '18'
      python-version:
        description: The version of python to use for IaC deployment
        required: false
        type: string
        default: '3.9'
jobs:
  lint-test-cdk:
    if: ${{ inputs.run-cdk-lint }}
    uses: ./.github/workflows/python-lint-test-cdk.yaml
    with:
      working-dir: infra/cdk
      test-dir: tests/unit
    secrets: inherit
  lint-test-lambda:
    if: ${{ inputs.run-lambda-lint }}
    uses : ./.github/workflows/python-lint-test-lmd.yaml
    with :
      working-dir : src/lambdas/
      test-dir : tests/unit
    secrets : inherit
  lint-test-glue:
    if : ${{ inputs.run-glue-lint }}
    uses : ./.github/workflows/python-lint-test-glue.yaml
    with :
      working-dir : src/glue/
      test-dir : tests/unit
    secrets : inherit
Leave a Comment