ci.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. name: "Alamofire CI"
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - hotfix
  7. pull_request:
  8. branches:
  9. - '*'
  10. jobs:
  11. macOS:
  12. name: Test macOS
  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
  19. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
  20. Catalyst:
  21. name: Test Catalyst
  22. runs-on: macOS-latest
  23. env:
  24. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  25. steps:
  26. - uses: actions/checkout@v2
  27. - name: Catalyst
  28. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "platform=macOS" clean test | xcpretty
  29. iOS:
  30. name: Test iOS
  31. runs-on: macOS-latest
  32. env:
  33. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  34. strategy:
  35. matrix:
  36. destination: ["OS=13.3,name=iPhone 11 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
  37. steps:
  38. - uses: actions/checkout@v2
  39. - name: iOS - ${{ matrix.destination }}
  40. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "${{ matrix.destination }}" clean test | xcpretty
  41. tvOS:
  42. name: Test tvOS
  43. runs-on: macOS-latest
  44. env:
  45. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  46. strategy:
  47. matrix:
  48. destination: ["OS=13.3,name=Apple TV 4K"] #, "OS=11.4,name=Apple TV 4K", "OS=10.2,name=Apple TV 1080p"]
  49. steps:
  50. - uses: actions/checkout@v2
  51. - name: tvOS - ${{ matrix.destination }}
  52. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire tvOS" -destination "${{ matrix.destination }}" clean test | xcpretty
  53. watchOS:
  54. name: Build watchOS
  55. runs-on: macOS-latest
  56. env:
  57. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  58. strategy:
  59. matrix:
  60. destination: ["OS=6.1.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"]
  61. steps:
  62. - uses: actions/checkout@v2
  63. - name: watchOS - ${{ matrix.destination }}
  64. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire watchOS" -destination "${{ matrix.destination }}" clean build | xcpretty
  65. spm:
  66. name: Test with SPM
  67. runs-on: macOS-latest
  68. env:
  69. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  70. steps:
  71. - uses: actions/checkout@v2
  72. - name: SPM Test
  73. run: swift test -c debug