From 90bec545d85c629df2a0f4249cd43f7b941ec509 Mon Sep 17 00:00:00 2001 From: onevcat Date: Fri, 8 Nov 2019 15:15:43 +0900 Subject: [PATCH] Add testing matrix --- .github/workflows/build.yaml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b8baaf36c..3b945d606 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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