version: 0.2
env:
  variables:
    PRX_NULL: "null"
phases:
  install:
    runtime-versions:
      python: 3.8
      nodejs: 12
    commands:
      - "cd devops/chat-ops/slack-app && npm install && cd ../../../"
      - "npm install"
      - "pip3 install -r requirements.txt"
  build:
    commands:
      - 'find . -name "*.yml" -type f ! -path "*/node_modules/*" ! -path "./.github/*" -mindepth 2 -print0 | xargs -0 -n1 cfn-lint --ignore-checks W --template'
      - "python3.8 -m black --check ./"
      - "python3.8 -m flake8"
      - "npm run tsc"
      - 'npm run eslint -- "**/*.js"'
      - 'npm run prettier -- --check "**/*.{js,json,yml}"'

version: 0.2
env:
  variables:
    PRX_NULL: "null"
phases:
  install:
    runtime-versions:
      python: 3.8
      nodejs: 12
    commands:
      - "cd devops/chat-ops/slack-app && npm install && cd ../../../"
      - "npm install"
      - "pip3 install -r requirements.txt"
  build:
    commands:
      - 'find . -name "*.yml" -type f ! -path "*/node_modules/*" ! -path "./.github/*" -mindepth 2 -print0 | xargs -0 -n1 cfn-lint --template'
      - "python3.8 -m black --check ./"
      - "python3.8 -m flake8"
      - "npm run tsc"
      - 'npm run eslint -- "**/*.js"'
      - 'npm run prettier -- --check "**/*.{js,json,yml}"'

Check for cfn-lint warnings in build
Check for cfn-lint warnings in build
