tests.yml 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: tests
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. workflow_dispatch:
  10. jobs:
  11. pod-lib-lint:
  12. runs-on: macOS-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Update Bundler
  16. run: bundle update --bundler
  17. - name: Install Ruby gems with Bundler
  18. run: bundle install
  19. - name: Lint podspec using local source
  20. run: pod lib lint --verbose --allow-warnings
  21. spm-build-test:
  22. runs-on: macOS-latest
  23. steps:
  24. - uses: actions/checkout@v2
  25. - name: Build unit test target
  26. run: |
  27. xcodebuild \
  28. -scheme GoogleSignIn \
  29. -sdk 'iphonesimulator' \
  30. -destination 'platform=iOS Simulator,name=iPhone 11' \
  31. build-for-testing
  32. - name: Run unit test target
  33. run: |
  34. xcodebuild \
  35. -scheme GoogleSignIn \
  36. -sdk 'iphonesimulator' \
  37. -destination 'platform=iOS Simulator,name=iPhone 11' \
  38. test-without-building