Skip to content

Commit

Permalink
Add testing matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Nov 8, 2019
1 parent 13ab375 commit 90bec54
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@ on: [push]

jobs:
build:

runs-on: macOS-latest

strategy:
matrix:
destination: ['platform=macOS', 'platform=iOS Simulator,name=iPhone 8', 'platform=tvOS Simulator,name=Apple TV']
swift-version: [5.0, 4.2, 4.0]
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install Gems
run: bundle install --path vendor/bundle
- name: Run tests
run: bundle exec fastlane tests
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install Gems
run: bundle install --path vendor/bundle
- name: Run tests
env:
DESTINATION: ${{ matrix.destination }}
SWIFT_VERSION: ${{ matrix.swift-version }}
run: bundle exec fastlane test_ci

0 comments on commit 90bec54

Please sign in to comment.