2
0

ci.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. iOS:
  21. name: Test iOS
  22. runs-on: macOS-latest
  23. env:
  24. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  25. strategy:
  26. matrix:
  27. 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"]
  28. steps:
  29. - uses: actions/checkout@v2
  30. - name: iOS - ${{ matrix.destination }}
  31. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "${{ matrix.destination }}" clean test | xcpretty
  32. tvOS:
  33. name: Test tvOS
  34. runs-on: macOS-latest
  35. env:
  36. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  37. strategy:
  38. matrix:
  39. destination: ["OS=13.3,name=Apple TV 4K"] #, "OS=11.4,name=Apple TV 4K", "OS=10.2,name=Apple TV 1080p"]
  40. steps:
  41. - uses: actions/checkout@v2
  42. - name: tvOS - ${{ matrix.destination }}
  43. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire tvOS" -destination "${{ matrix.destination }}" clean test | xcpretty
  44. watchOS:
  45. name: Build watchOS
  46. runs-on: macOS-latest
  47. env:
  48. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  49. strategy:
  50. matrix:
  51. 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"]
  52. steps:
  53. - uses: actions/checkout@v2
  54. - name: watchOS - ${{ matrix.destination }}
  55. run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire watchOS" -destination "${{ matrix.destination }}" clean build | xcpretty
  56. spm:
  57. name: Test with SPM
  58. runs-on: macOS-latest
  59. env:
  60. DEVELOPER_DIR: /Applications/Xcode_11.3.1.app/Contents/Developer
  61. steps:
  62. - uses: actions/checkout@v2
  63. - name: SPM Test
  64. run: swift test -c debug