pull_request.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 -warnings-as-errors -Xswiftc -require-explicit-availability"
  22. linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors -Xswiftc -require-explicit-availability"
  23. linux_6_2_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors -Xswiftc -require-explicit-availability"
  24. linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors -Xswiftc -require-explicit-availability"
  25. linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors -Xswiftc -require-explicit-availability"
  26. construct-integration-tests-matrix:
  27. name: Construct integration matrix
  28. runs-on: ubuntu-latest
  29. outputs:
  30. integration-tests-matrix: '${{ steps.generate-matrix.outputs.integration-tests-matrix }}'
  31. steps:
  32. - name: Checkout repository
  33. uses: actions/checkout@v4
  34. with:
  35. persist-credentials: false
  36. - id: generate-matrix
  37. run: echo "integration-tests-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT"
  38. env:
  39. MATRIX_LINUX_COMMAND: ./dev/integration_tests.sh
  40. MATRIX_LINUX_5_9_ENABLED: false
  41. MATRIX_LINUX_5_10_ENABLED: false
  42. integration-tests:
  43. name: Integration Tests
  44. needs: construct-integration-tests-matrix
  45. uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
  46. with:
  47. name: "Integration Tests"
  48. matrix_string: '${{ needs.construct-integration-tests-matrix.outputs.integration-tests-matrix }}'
  49. cxx-interop:
  50. name: Cxx Interop
  51. uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
  52. with:
  53. linux_5_9_enabled: false
  54. linux_5_10_enabled: false
  55. static-sdk:
  56. name: Static SDK
  57. uses: apple/swift-nio/.github/workflows/static_sdk.yml@main
  58. release-builds:
  59. name: Release builds
  60. uses: apple/swift-nio/.github/workflows/release_builds.yml@main
  61. with:
  62. linux_5_10_enabled: false