soundness.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Soundness
  2. on:
  3. workflow_call:
  4. jobs:
  5. swift-license-check:
  6. name: Swift license headers check
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Checkout repository
  10. uses: actions/checkout@v4
  11. with:
  12. persist-credentials: false
  13. - name: Mark the workspace as safe
  14. run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
  15. - name: Run license check
  16. run: |
  17. ./dev/license-check.sh
  18. check-generated-code:
  19. name: Check generated code
  20. runs-on: ubuntu-latest
  21. container:
  22. image: swift:latest
  23. steps:
  24. - name: Checkout repository
  25. uses: actions/checkout@v4
  26. with:
  27. persist-credentials: false
  28. - name: Mark the workspace as safe
  29. run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
  30. - name: Install protoc
  31. run: apt update && apt install -y protobuf-compiler
  32. - name: Run soundness checks
  33. run: |
  34. ./dev/check-generated-code.sh
  35. check-imports:
  36. name: Check imports have access level
  37. runs-on: ubuntu-latest
  38. steps:
  39. - name: Checkout repository
  40. uses: actions/checkout@v4
  41. with:
  42. persist-credentials: false
  43. - name: Mark the workspace as safe
  44. run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
  45. - name: Check import access level
  46. run: |
  47. ./dev/check-imports.sh