name: tests

on: [push, pull_request, workflow_dispatch]

jobs:

  pod-lib-lint:
    runs-on: macOS-latest
    steps:
    - uses: actions/checkout@v2
    - name: Update Bundler
      run: bundle update --bundler
    - name: Install Ruby gems with Bundler
      run: bundle install
    - name: Lint podspec using local source
      run: pod lib lint --allow-warnings

  spm-build-test:
    runs-on: macOS-latest
    steps:
    - uses: actions/checkout@v2
    - name: Initialize xcodebuild
      run: xcodebuild -list
    - name: Run unit test target
      run: |
        xcodebuild \
          -scheme GoogleSignIn \
          -sdk 'iphonesimulator' \
          -destination 'platform=iOS Simulator,name=iPhone 11' \
          test

name: tests

on: [push, pull_request, workflow_dispatch]

jobs:

  pod-lib-lint:
    runs-on: macOS-latest
    steps:
    - uses: actions/checkout@v2
    - name: Update Bundler
      run: bundle update --bundler
    - name: Install Ruby gems with Bundler
      run: bundle install
    - name: Lint podspec using local source
      run: pod lib lint --allow-warnings

  spm-build-test:
    runs-on: macOS-latest
    steps:
    - uses: actions/checkout@v2
    - name: Initialize xcodebuild
      run: xcodebuild -list
    - name: Build unit test target
      run: |
        xcodebuild \
          -scheme GoogleSignIn \
          -sdk 'iphonesimulator' \
          -destination 'platform=iOS Simulator,name=iPhone 11' \
          build-for-testing
    - name: Run unit test target
      run: |
        xcodebuild \
          -scheme GoogleSignIn \
          -sdk 'iphonesimulator' \
          -destination 'platform=iOS Simulator,name=iPhone 11' \
          test-without-building

Split xcodebuild test into two phases.
Split xcodebuild test into two phases.
