build.yaml 819 B

12345678910111213141516171819202122232425262728
  1. name: build
  2. on: [push, pull_request]
  3. jobs:
  4. run-test:
  5. runs-on: macOS-latest
  6. strategy:
  7. matrix:
  8. destination: ['macOS', 'iOS Simulator,name=iPhone 8', 'tvOS Simulator,name=Apple TV']
  9. swift-version: [5.0, 4.2, 4.0]
  10. steps:
  11. - uses: actions/checkout@v1
  12. - uses: actions/cache@v1
  13. with:
  14. path: vendor/bundle
  15. key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
  16. restore-keys: |
  17. ${{ runner.os }}-gems-
  18. - name: Bundle install
  19. run: |
  20. bundle config path vendor/bundle
  21. bundle install --jobs 4 --retry 3
  22. - name: Run tests
  23. env:
  24. DESTINATION: platform=${{ matrix.destination }}
  25. SWIFT_VERSION: ${{ matrix.swift-version }}
  26. run: bundle exec fastlane test_ci