integration_tests.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: integration_tests
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. workflow_dispatch:
  10. jobs:
  11. swift-button-functional-test:
  12. runs-on: macOS-latest
  13. defaults:
  14. run:
  15. working-directory: Samples/Swift/DaysUntilBirthday
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@v2
  19. - name: Build test target for Google Sign-in button for Swift
  20. run: |
  21. xcodebuild \
  22. -project DaysUntilBirthday.xcodeproj \
  23. build-for-testing \
  24. -scheme DaysUntilBirthday\ \(iOS\) \
  25. -sdk iphonesimulator \
  26. -destination 'platform=iOS Simulator,name=iPhone 11'
  27. - name: Run test target for Google Sign-in button for Swift
  28. env:
  29. EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }}
  30. PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }}
  31. run: |
  32. xcodebuild \
  33. -project DaysUntilBirthday.xcodeproj \
  34. test-without-building \
  35. -scheme DaysUntilBirthday\ \(iOS\) \
  36. -sdk iphonesimulator \
  37. -destination 'platform=iOS Simulator,name=iPhone 11' \
  38. EMAIL_SECRET=$EMAIL_SECRET \
  39. PASSWORD_SECRET=$PASSWORD_SECRET