ci.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. name: "Alamofire CI"
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - hotfix
  7. pull_request:
  8. branches:
  9. - '*'
  10. jobs:
  11. macOS_5_1:
  12. name: Test macOS (5.1)
  13. runs-on: macOS-latest
  14. env:
  15. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: macOS (5.1)
  19. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
  20. macOS_5_2:
  21. name: Test macOS (5.2)
  22. runs-on: macOS-latest
  23. env:
  24. DEVELOPER_DIR: /Applications/Xcode_11.6.app/Contents/Developer
  25. steps:
  26. - uses: actions/checkout@v2
  27. - name: macOS (5.2)
  28. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
  29. macOS_5_3:
  30. name: Test macOS (5.3)
  31. runs-on: macOS-latest
  32. env:
  33. DEVELOPER_DIR: /Applications/Xcode_12_beta.app/Contents/Developer
  34. steps:
  35. - uses: actions/checkout@v2
  36. - name: macOS (5.3)
  37. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
  38. Catalyst:
  39. name: Test Catalyst
  40. runs-on: macOS-latest
  41. env:
  42. DEVELOPER_DIR: /Applications/Xcode_11.6.app/Contents/Developer
  43. steps:
  44. - uses: actions/checkout@v2
  45. - name: Catalyst
  46. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "platform=macOS" clean test | xcpretty
  47. iOS:
  48. name: Test iOS
  49. runs-on: macOS-latest
  50. env:
  51. DEVELOPER_DIR: /Applications/Xcode_11.6.app/Contents/Developer
  52. strategy:
  53. matrix:
  54. destination: ["OS=13.6,name=iPhone 11 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
  55. steps:
  56. - uses: actions/checkout@v2
  57. - name: iOS - ${{ matrix.destination }}
  58. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "${{ matrix.destination }}" clean test | xcpretty
  59. # iOS14:
  60. # name: Test iOS 14
  61. # runs-on: macOS-latest
  62. # env:
  63. # DEVELOPER_DIR: /Applications/Xcode_12_beta.app/Contents/Developer
  64. # strategy:
  65. # matrix:
  66. # destination: ["OS=14.0,name=iPhone 11 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
  67. # steps:
  68. # - uses: actions/checkout@v2
  69. # - name: iOS - ${{ matrix.destination }}
  70. # run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "${{ matrix.destination }}" clean test | xcpretty
  71. tvOS:
  72. name: Test tvOS
  73. runs-on: macOS-latest
  74. env:
  75. DEVELOPER_DIR: /Applications/Xcode_11.6.app/Contents/Developer
  76. strategy:
  77. matrix:
  78. destination: ["OS=13.4,name=Apple TV 4K"] #, "OS=11.4,name=Apple TV 4K", "OS=10.2,name=Apple TV 1080p"]
  79. steps:
  80. - uses: actions/checkout@v2
  81. - name: tvOS - ${{ matrix.destination }}
  82. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire tvOS" -destination "${{ matrix.destination }}" clean test | xcpretty
  83. watchOS:
  84. name: Build watchOS
  85. runs-on: macOS-latest
  86. env:
  87. DEVELOPER_DIR: /Applications/Xcode_11.6.app/Contents/Developer
  88. strategy:
  89. matrix:
  90. destination: ["OS=6.2.1,name=Apple Watch Series 5 - 44mm"] #, "OS=4.2,name=Apple Watch Series 3 - 42mm", "OS=3.2,name=Apple Watch Series 2 - 42mm"]
  91. steps:
  92. - uses: actions/checkout@v2
  93. - name: watchOS - ${{ matrix.destination }}
  94. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire watchOS" -destination "${{ matrix.destination }}" clean build | xcpretty
  95. spm:
  96. name: Test with SPM
  97. runs-on: macOS-latest
  98. env:
  99. DEVELOPER_DIR: /Applications/Xcode_11.6.app/Contents/Developer
  100. steps:
  101. - uses: actions/checkout@v2
  102. - name: SPM Test
  103. run: swift test -c debug