build.yaml 763 B

1234567891011121314151617181920212223242526
  1. name: build
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: macOS-latest
  6. strategy:
  7. matrix:
  8. destination: ['platform=macOS', 'platform=iOS Simulator,name=iPhone 8', 'platform=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 }}-gem-${{ hashFiles('**/Gemfile.lock') }}
  16. restore-keys: |
  17. ${{ runner.os }}-gem-
  18. - name: Install Gems
  19. run: bundle install --path vendor/bundle
  20. - name: Run tests
  21. env:
  22. DESTINATION: ${{ matrix.destination }}
  23. SWIFT_VERSION: ${{ matrix.swift-version }}
  24. run: bundle exec fastlane test_ci