ci.yml 2.5 KB

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