build.yaml 679 B

123456789101112131415161718192021222324252627
  1. name: build
  2. on: [push, pull_request]
  3. jobs:
  4. run-test:
  5. runs-on: macos-11
  6. strategy:
  7. matrix:
  8. destination: [
  9. 'macOS',
  10. 'iOS Simulator,name=iPhone 8',
  11. 'tvOS Simulator,name=Apple TV',
  12. 'watchOS Simulator,name=Apple Watch Series 5 - 40mm'
  13. ]
  14. swift-version: [5.0]
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: ruby/setup-ruby@v1
  18. with:
  19. ruby-version: 2.7.4
  20. bundler-cache: true
  21. - name: Run tests
  22. env:
  23. DESTINATION: platform=${{ matrix.destination }}
  24. SWIFT_VERSION: ${{ matrix.swift-version }}
  25. run: bundle exec fastlane test_ci