pull_request.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_6_0_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-plugin-tests-matrix:
  25. name: Construct plugin tests matrix
  26. runs-on: ubuntu-latest
  27. outputs:
  28. plugin-tests-matrix: '${{ steps.generate-matrix.outputs.plugin-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 "plugin-tests-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT"
  36. env:
  37. MATRIX_LINUX_5_9_ENABLED: false
  38. MATRIX_LINUX_5_10_ENABLED: false
  39. MATRIX_LINUX_COMMAND: "curl -s https://raw.githubusercontent.com/rnro/grpc-swift-protobuf/refs/heads/build_plugin_integration_tests/dev/plugin-tests.sh | GITHUB_ACTIONS=true bash"
  40. MATRIX_LINUX_SETUP_COMMAND: "apt-get update -y -q && apt-get install -y -q curl protobuf-compiler"
  41. plugin-tests-matrix:
  42. name: Plugin tests
  43. needs: construct-plugin-tests-matrix
  44. uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
  45. with:
  46. name: "Plugin tests"
  47. matrix_string: '${{ needs.construct-plugin-tests-matrix.outputs.plugin-tests-matrix }}'
  48. cxx-interop:
  49. name: Cxx interop
  50. uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
  51. with:
  52. linux_5_9_enabled: false
  53. linux_5_10_enabled: false