| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- name: tests
- on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
- workflow_dispatch:
- jobs:
- pod-lib-lint:
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [macos-latest, macos-10.15]
- podspec: [GoogleSignIn.podspec, GoogleSignInSwiftSupport.podspec]
- flag: [
- "",
- "--use-libraries",
- "--use-static-frameworks"
- ]
- include:
- - podspec: GoogleSignInSwiftSupport.podspec
- includePodspecFlag: "--include-podspecs='GoogleSignIn.podspec'"
- 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 ${{ matrix.podspec }} --verbose \
- ${{ matrix.includePodspecFlag }} ${{ matrix.flag }}
- spm-build-test:
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [macos-latest, macos-10.15]
- sdk: ['macosx', 'iphonesimulator']
- include:
- - sdk: 'macosx'
- destination: '"platform=OS X,arch=x86_64"'
- - sdk: 'iphonesimulator'
- destination: '"platform=iOS Simulator,name=iPhone 11"'
- steps:
- - uses: actions/checkout@v2
- - name: Build unit test target
- run: |
- xcodebuild \
- -scheme GoogleSignIn-Package \
- -sdk ${{ matrix.sdk }} \
- -destination ${{ matrix.destination }} \
- build-for-testing
- - name: Run unit test target
- run: |
- xcodebuild \
- -scheme GoogleSignIn-Package \
- -sdk ${{ matrix.sdk }} \
- -destination ${{ matrix.destination }} \
- test-without-building
|