| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- name: tests
- on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
- - GIDGoogleUser-restructure
- workflow_dispatch:
- jobs:
-
- pod-lib-lint:
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [macos-11, macos-12]
- 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-11, macos-12]
- 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
- swift-button-functional-test:
- if: ${{ false }} # Disable integration tests while we figure out OTAs
- runs-on: macOS-latest
- defaults:
- run:
- working-directory: Samples/Swift/DaysUntilBirthday
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Build test target for Google Sign-in button for Swift
- run: |
- xcodebuild \
- -project DaysUntilBirthday.xcodeproj \
- build-for-testing \
- -scheme DaysUntilBirthday\ \(iOS\) \
- -sdk iphonesimulator \
- -destination 'platform=iOS Simulator,name=iPhone 11'
- - name: Run test target for Google Sign-in button for Swift
- env:
- EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }}
- PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }}
- run: |
- xcodebuild \
- -project DaysUntilBirthday.xcodeproj \
- test-without-building \
- -scheme DaysUntilBirthday\ \(iOS\) \
- -sdk iphonesimulator \
- -destination 'platform=iOS Simulator,name=iPhone 11' \
- EMAIL_SECRET=$EMAIL_SECRET \
- PASSWORD_SECRET=$PASSWORD_SECRET
|