check.yml 927 B

1234567891011121314151617181920212223242526272829303132333435
  1. on: [workflow_call]
  2. name: "Check"
  3. permissions: {}
  4. jobs:
  5. shellcheck:
  6. name: shellcheck
  7. runs-on: ubuntu-latest
  8. steps:
  9. -
  10. name: Checkout
  11. uses: actions/checkout@v5
  12. -
  13. name: Run ShellCheck
  14. uses: ludeeus/action-shellcheck@master
  15. env:
  16. SHELLCHECK_OPTS: -x --source-path=src -e SC1091 -e SC2001 -e SC2002 -e SC2034 -e SC2064 -e SC2153 -e SC2317 -e SC2028
  17. -
  18. name: Lint Dockerfile
  19. uses: hadolint/hadolint-action@v3.3.0
  20. with:
  21. dockerfile: Dockerfile
  22. ignore: DL3006,DL3008
  23. failure-threshold: warning
  24. -
  25. name: Validate XML
  26. uses: action-pack/valid-xml@v1
  27. with:
  28. path: "assets"
  29. file-endings: ".xml"
  30. -
  31. name: Validate JSON and YML files
  32. uses: GrantBirki/json-yaml-validate@v4
  33. with:
  34. yaml_exclude_regex: ".*\\kubernetes\\.yml$"