pull_request.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: PR
  2. on:
  3. pull_request:
  4. branches: [main]
  5. types: [opened, reopened, synchronize]
  6. jobs:
  7. soundness:
  8. name: Soundness
  9. uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
  10. with:
  11. license_header_check_project_name: "gRPC"
  12. grpc-soundness:
  13. name: Soundness
  14. uses: ./.github/workflows/soundness.yml
  15. unit-tests:
  16. name: Unit Tests
  17. uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
  18. with:
  19. linux_5_9_enabled: false
  20. linux_5_10_enabled: false
  21. linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
  22. linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
  23. linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
  24. construct-integration-tests-matrix:
  25. name: Construct integration matrix
  26. runs-on: ubuntu-latest
  27. outputs:
  28. integration-tests-matrix: '${{ steps.generate-matrix.outputs.integration-tests-matrix }}'
  29. steps:
  30. - name: Checkout repository
  31. uses: actions/checkout@v4
  32. with:
  33. persist-credentials: false
  34. - id: generate-matrix
  35. run: echo "integration-tests-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT"
  36. env:
  37. MATRIX_LINUX_COMMAND: ./dev/integration_tests.sh
  38. MATRIX_LINUX_5_9_ENABLED: false
  39. MATRIX_LINUX_5_10_ENABLED: false
  40. integration-tests:
  41. name: Integration Tests
  42. needs: construct-integration-tests-matrix
  43. uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
  44. with:
  45. name: "Integration Tests"
  46. matrix_string: '${{ needs.construct-integration-tests-matrix.outputs.integration-tests-matrix }}'
  47. cxx-interop:
  48. name: Cxx Interop
  49. uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
  50. with:
  51. linux_5_9_enabled: false
  52. linux_5_10_enabled: false
  53. static-sdk:
  54. name: Static SDK
  55. uses: apple/swift-nio/.github/workflows/static_sdk.yml@main